Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Interpolate Text Not Inside a Certain Tag

by ikegami (Patriarch)
on Apr 07, 2005 at 17:37 UTC ( [id://445809]=note: print w/replies, xml ) Need Help??


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

It doesn't work for the simple case "**bold**". I haven't tried anything else.
  • Comment on Re^2: Interpolate Text Not Inside a Certain Tag

Replies are listed 'Best First'.
Re: Interpolate Text Not Inside a Certain Tag
by jonadab (Parson) on Apr 09, 2005 at 00:17 UTC

    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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-26 01:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found