Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: Reg Ex problems....

by ihb (Deacon)
on Jan 09, 2003 at 15:41 UTC ( [id://225562]=note: print w/replies, xml ) Need Help??


in reply to Re: Reg Ex problems....
in thread Reg Ex problems....

The m and s modifiers are the everlasting objects of confusion for regexes. What the s modifier does is nothing but making . match *everything*, including newline. You're right that he probably wants to use s in his pattern, but in your pattern you've change the dot to [^\n] and now the s has no effect.

Though, I'm one of those that propagate a wide use of s, simply because it's so often forgotten. So ++ for you for pointing it out. :)

ihb

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-20 14:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found