Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Perl Regex

by samarzone (Pilgrim)
on Nov 23, 2010 at 07:44 UTC ( #873131=note: print w/replies, xml ) Need Help??


in reply to Perl Regex

Regex given by Ikegami should do the trick, but in the example log you have mentioned some_fields before and after the required message. In that case you should remove the caret (^) to allow it matching anywhere in the string. E.g. /\bmsg="[^"]*"/

The example you posted has syntax errors. You have left the concatenation operator (.) while printing. I hope you are not redirecting your error output to /dev/null while running the script.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://873131]
help
Chatterbox?
[choroba]: Any Monks online that can check what went wrong?
[Copacetic]: Sorry, I've just discovered that it gives a useful error message if I select "preview" (as well as removing the "create" button for some reason). It was that my title wasn't long enough. Thanks for your help.

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-05-26 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?