Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Matching delimiters

by vivid (Beadle)
on Dec 19, 2007 at 06:01 UTC ( [id://657807]=note: print w/replies, xml ) Need Help??


in reply to Matching delimiters

Try this

use Regexp::Common; use Regexp::Common::balanced; $str=~s#\\caption($RE{balanced}{-begin=>"{"}{-end=>"}"}{-keep})#<capti +on>$1</caption>#sgi;

Vivid

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-23 21:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found