I have a string in Java that I need to split using "<$" and "$>" as delimiters.
But if I have something looking like "\<$something_we_dont_care_what$>" than we ignore it and move on.
I’ve been trying to write a regex doing this for a while but I keep failing and reading about regular expressions in Java is just making me more and more confused…
Can anyone tell me the right way to do this?
Thank you.
Never mind.
I’ve found a solution after a few hours of browsing and experimenting.
Regex expression that does exactly what I wanted is following: