As a general comment: .+? at the start or end of a regex will never match anythingFalse:
Remember, "left-most match" trumps "shortest match".$ perl -wE '"abcdef" =~ /(.+?)f/ and say $1' abcde
In reply to Re^2: Something is wrong with this pattern
by JavaFan
in thread Something is wrong with this pattern
by tej
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |