If you don't want the position reset after failure to match, add the "//c", as in "/regexp/gc".odd that it does not appear to be mentioned in perldoc perlre..
In reply to Re^2: search hang trouble
by mreece
in thread search hang trouble
by greatdane
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |