Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: perl string extract

by eyepopslikeamosquito (Archbishop)
on Oct 04, 2010 at 06:41 UTC ( [id://863270]=note: print w/replies, xml ) Need Help??


in reply to Re: perl string extract
in thread perl string extract

Your regex:

if ($line =~ /logfile\s*\=\s*(.+?)\s*\,/){
unilaterally matches a comma and so does not seem to match the OP's requirement to match with or without a comma.

Log In?
Username:
Password:

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

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

    No recent polls found