True, but if you have a regex of the type "a pattern" followed by "another pattern which might contain the first pattern" and you want to find all occurrences, you have to use the look forward assertion or otherwise you have "used up" the second pattern and you will miss it.
CountZero
"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In reply to Re: Re: Re: Regex replace in context
by CountZero
in thread Regex replace in context
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |