rmexico has asked for the wisdom of the Perl Monks concerning the following question:
but not the following:blah.boo(getSomething()) ;
so basically, find an open paren, then whatever's inside the open paren until a final close paren and a semi-colon (the close paren and the semi- need not be butted against one another). how do i match what's in the parens only if it doesn't have a quotation mark?blah.boo("bingo");
so $2 up there, how do i say, gimme anything only if it doesn't have a quotation mark?$filecontents =~ /.*?$blah\.([0-9a-zA-Z_\-]+)\((.*?)\).*\;/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: regex: finding something that doesn't contain a quotation?
by GrandFather (Saint) on Feb 11, 2006 at 04:59 UTC | |
|
Re: regex: finding something that doesn't contain a quotation?
by prasadbabu (Prior) on Feb 11, 2006 at 04:12 UTC | |
|
Re: regex: finding something that doesn't contain a quotation?
by l.frankline (Hermit) on Feb 11, 2006 at 04:24 UTC | |
|
Re: regex: finding something that doesn't contain a quotation?
by injunjoel (Priest) on Feb 11, 2006 at 05:07 UTC |