Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Regular expression with capture following a match

by ioannis (Abbot)
on Oct 01, 2005 at 00:12 UTC ( #496564=note: print w/replies, xml ) Need Help??


in reply to Regular expression with capture following a match

# This is the default, since we are not doing Unicode use bytes; $_ = 'speed basic-2.0 5.5 basic-11.0'; # In order to match 'anything', we must also match any newlines (my $result) = /\A \w+ \s+ (.*) \z/msxg; print $result;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (3)
As of 2022-11-30 20:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?