Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: reg ex help

by perlinux (Deacon)
on Apr 16, 2004 at 09:41 UTC ( [id://345696]=note: print w/replies, xml ) Need Help??


in reply to reg ex help

I think it's possible something like this:
.... if(/^\d{4}: (\w\w ){13}(\w\w)(.*)$/) { # $_ of course my $number14 = $2; ....... }

Replies are listed 'Best First'.
Re: Re: reg ex help
by markd (Acolyte) on Apr 16, 2004 at 12:14 UTC
    actually is it possible to do the regex in one line? Then it would be possible to put it into:
    $session->expect(30, '-re', qr'REGEX');

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-26 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found