|Perl Monk, Perl Meditation|
Puzzled by regexby syphilis (Chancellor)
|on Apr 10, 2013 at 03:35 UTC||Need Help??|
syphilis has asked for the
wisdom of the Perl Monks concerning the following question:
In Inline.pm's sub read_DATA there's a regex seeking to match /_\S+?__\n/
I haven't yet seen how the ? can have an effect on the result.
That is, for what strings will /__\S+?__\n/ and /__\S+__\n/ return a different result ?
I ran this script (perl-5.16.0) to check for some difference - but it doesn't detect any: