Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Removing underline tags with regexp

by Elian (Parson)
on Sep 02, 2003 at 12:51 UTC ( #288307=note: print w/replies, xml ) Need Help??


in reply to Removing underline tags with regexp

The opinions so far are about right--while in the general case you shouldn't, in the normal case you can. However, I'd consider the regex:
s/<(\/?)u>/<!-- $1 u -->
just so you can reasonably easily find where you nuked things just in case you ended up munching tags you didn't want to. (A good backup of the files wouldn't be out of order either...)

Update:Missing a slash. Fixed.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2021-08-05 07:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My primary motivation for participating at PerlMonks is: (Choices in context)








    Results (44 votes). Check out past polls.

    Notices?