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

RE: RegExp Help Needed

by dchetlin (Friar)
on Oct 25, 2000 at 15:49 UTC ( #38334=note: print w/ replies, xml ) Need Help??

in reply to RegExp Help Needed

It depends on how robust you need to be. If you don't care about things like `(that "smarts (especially like this)!")', you could do:


If you really need to have it balance correctly with escaped or quoted parens, you'll probably want to look at a module (I've heard good things about Text::Balanced and I suspect it could help here, but having never worked with it I'll defer to others).


Comment on RE: RegExp Help Needed
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2016-02-06 22:06 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (236 votes), past polls