I'm have two kinds of string (something could be any kind of text):
<<something>><<CODE:something>>
The patterns of the Regex used to find both are:
<<(.*?)>><<CODE:(.*?)>>
As you can see, there's an issue that the first pattern can also find the second string.
Since both start with << and the first pattern is (.*?), it's possible get an unwanted match.
How can I prevent finding strings with CODE: while still inside << >>?