I just recently attempted to learn Regex for a project, and I have this:
patternstr = "<$Testing$>Go HERE <$Test2$>GO HERE 2 ";
Pattern pattern = Pattern.compile("<\\$\\w+\\$>\\w+");
Matcher matcher = pattern.matcher(patternstr);
Which returns
<$Testing$>Go
and
<$Test2$>GO
so how do I get the rest of the text while keeping the two strings separate? Like that should return
<$Testing$>Go HERE
<$Test2$>GO HERE 2
and if I added more of the tags with text after it, it will return the third as well as the first 2.