Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re^3: Regex, extracting stuff from the middle of a line

by sh1tn (Priest)
on Aug 03, 2006 at 19:28 UTC ( #565535=note: print w/replies, xml ) Need Help??


in reply to Re^3: Regex, extracting stuff from the middle of a line
in thread Using a regex function from a hash

You should escape the special '\' symbol:
m|\\(\w+)| and print $1, "\n";
For the date/time:
m|:\s+(\S+)| and print $1, "\n";
See perlre


Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-09-26 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I prefer my indexes to start at:




    Results (116 votes). Check out past polls.

    Notices?