in reply to Re: Something is wrong with this pattern
in thread Something is wrong with this pattern
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Something is wrong with this pattern
by GrandFather (Saint) on Dec 24, 2010 at 21:42 UTC |