Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Common Regex Gotchas

by Anonymous Monk
on May 28, 2001 at 17:50 UTC ( #83726=note: print w/ replies, xml ) Need Help??


in reply to Common Regex Gotchas

under the section: ``Specifying too much'' you said:

$line =~ /^\w*: \w*\s*\w*, \w*: \w*, \w+: (\d)*, \w*: \w*$";

This ends the regexp with a `"' and starts it with `/`. you could do m"..." or /.../ .


Comment on Re: Common Regex Gotchas
Replies are listed 'Best First'.
Re: Re: Common Regex Gotchas
by Anonymous Monk on Jan 19, 2002 at 09:55 UTC

    your allowed to do that with regexs? I just learned you could use [], (), "", <>, etc., with qq...

    I should read more on Perl.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (18)
As of 2015-07-28 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (255 votes), past polls