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 anything
False:
$ perl -wE '"abcdef" =~ /(.+?)f/ and say $1' abcde
Remember, "left-most match" trumps "shortest match".

Replies are listed 'Best First'.
Re^3: Something is wrong with this pattern
by GrandFather (Saint) on Dec 24, 2010 at 21:42 UTC

    Sigh, yes you are quite right and I didn't remember. Can we blame it on too much pre-Christmas cheer? Merry Christmas. ;)

    True laziness is hard work