Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: why is regex not matching final character?

by fiverivers (Novice)
on May 07, 2012 at 08:44 UTC ( #969221=note: print w/ replies, xml ) Need Help??


in reply to Re^3: why is regex not matching final character?
in thread why is regex not matching final character?

sounds like you know your regexes. Thinking about the whole thing again all I need is the code below because \w does not match spaces so will stop at the first space.

if ($line =~ m/^update\ (\w*)/){ print $1."\n"; }


Comment on Re^4: why is regex not matching final character?
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (7)
As of 2015-04-28 07:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (516 votes), past polls