Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^2: Regex becomes greedy with /s

by pingo (Hermit)
on Feb 26, 2010 at 10:24 UTC ( #825485=note: print w/replies, xml ) Need Help??


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 (Bishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://825485]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2020-12-01 22:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (23 votes). Check out past polls.

    Notices?