Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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.


Comment on Re: regex: finding something that doesn't contain a quotation?
Select or Download Code

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 browsing the Monastery: (7)
As of 2015-07-05 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls