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

Re: regex: finding something that doesn't contain a quotation?

by l.frankline (Hermit)
on Feb 11, 2006 at 04:24 UTC ( #529521=note: print w/replies, xml ) Need Help??


in reply to regex: finding something that doesn't contain a quotation?

Hi,

Can you mention, what is initialized in $blah variable, so that I can help you more efficiently, anyany...

A small change is missing in your regex. Get the solution below:

print $& if ($filecontents =~ /blah\.boo\(\w+\(\)\)\;/);

Cheers,
Franklin

Don't put off till tomorrow, what you can do today.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://529521]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2016-12-05 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (87 votes). Check out past polls.