Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Matching delimiters

by vivid (Beadle)
on Dec 19, 2007 at 06:01 UTC ( #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


Comment on Re: Matching delimiters
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2015-05-24 17:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    In my home, the TV remote control is ...









    Results (475 votes), past polls