Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: pulling by regex

by petral (Curate)
on Dec 11, 2002 at 01:01 UTC ( #218972=note: print w/replies, xml ) Need Help??


in reply to pulling by regex

Not sure what's wrong with the last $log_line, it works for me.   Another way to approach it is to remove the parts you do want:
$log_line =~ /\[([^]]+)\] "[^"]+" [^"]+ "([^"]+)"/; print "$1 $2<p>";
  p

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2020-01-21 16:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?