Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: capture groups are not working -- why??

by AnomalousMonk (Archbishop)
on Jun 05, 2013 at 18:40 UTC ( [id://1037275]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    /^Current time =>\s(\d\d\d\d)(\d\d)(\d\d)\S(\d\d)(\d\d)(\d\d)/sx ;
    
  2. or download this
    >perl -wMstrict -le
    "my $s = 'Current time => 123';
    ...
     print 'match 2' if $s =~ /Current [ ] time \s => \s+ 123/x;
    "
    match 2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (7)
As of 2024-04-23 17:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found