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

Re: Highlight your result

by voyager (Friar)
on Jul 18, 2001 at 20:15 UTC ( [id://97724]=note: print w/replies, xml ) Need Help??


in reply to Highlight your result

Your requirement is to only apply your substitution when you are not in a tag. Knowing when you are not in a tag is non-trivial.

You might try HTML::Parser. Your start and end handlers can just write what they read, and have your substitution take place in the text handler.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-03-29 10:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found