M
Moiristo
I have a problem with the java Matcher.
Consider the following regex: <<<(.)+>>>
Now, consider the following String containing two occurrences of the
above regex:
SELECT TOP <<<Upper limit>>> FROM (SELECT TOP <<<Lower limit>>> FROM person)
However, when I use Matcher.find(), it does not what I expect it to do.
Instead of matching the two substrings, it finds only one, namely:
'Upper limit>>> FROM (SELECT TOP <<<Lower limit'
This is of course correct, but not what I intended. Can someone help me
to solve this?
Consider the following regex: <<<(.)+>>>
Now, consider the following String containing two occurrences of the
above regex:
SELECT TOP <<<Upper limit>>> FROM (SELECT TOP <<<Lower limit>>> FROM person)
However, when I use Matcher.find(), it does not what I expect it to do.
Instead of matching the two substrings, it finds only one, namely:
'Upper limit>>> FROM (SELECT TOP <<<Lower limit'
This is of course correct, but not what I intended. Can someone help me
to solve this?