Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Interpolate Text Not Inside a Certain Tag

by ikegami (Pope)
on Apr 07, 2005 at 17:37 UTC ( #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
Node Status?
node history
Node Type: note [id://445809]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found

    Notices?