Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Interpolate Text Not Inside a Certain Tag

by jonadab (Parson)
on Apr 09, 2005 at 00:17 UTC ( #446198=note: print w/replies, xml ) Need Help??


in reply to Re^2: Interpolate Text Not Inside a Certain Tag
in thread Interpolate Text Not Inside a Certain Tag

Yeah, I wasn't thinking and used the match variables as if there were only two sets of parens, rather than four. The updated version works for that simple case. However, I'd worry about unexpected data screwing it up potentially rather badly, and it only handles one type of quote mark; if you're allowed to have both single and double quote marks and nest them and escape quote marks within quotes with backslashes, stuff gets messy fast.

  • Comment on Re: Interpolate Text Not Inside a Certain Tag

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2019-12-11 10:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?