in reply to Re: Regex becomes greedy with /s
in thread Regex becomes greedy with /s

Ah... I think I understand.

And this is just a throwaway script I am working on (at least I am fairly sure it is ;-)). If it was something more permanent, I'd certainly use one of the modules you mention.

Replies are listed 'Best First'.
Re^3: Regex becomes greedy with /s
by AnomalousMonk (Archbishop) on Feb 26, 2010 at 23:35 UTC

    Another argument for TheDamian's PBP regex recommendation that a standard set of regex modifiers be used, even in 'throwaway' scripts. E.g.,
        m{pattern}xms