Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: Removing underline tags with regexp

by Elian (Parson)
on Sep 02, 2003 at 12:51 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-18 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found