Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2016-06-28 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (350 votes). Check out past polls.