Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

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

by injunjoel (Priest)
on Feb 11, 2006 at 05:07 UTC ( #529526=note: print w/ replies, xml ) Need Help??

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

This is just a quick suggestion
based on my understanding of your question...
$filecontents =~ /.*?$blah\.([\w-]+)\(([^"]*)\)\s*;/; #not really sure what $blah is holding but #the [\w-] can replace your [0-9a-zA-Z_\-] character class #and \(([^"]*)\) is a greedy way of saying #anything inside of parens that is not a quote.

"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (8)
As of 2016-06-25 18:31 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (326 votes). Check out past polls.