Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Removing underline tags with regexp

by jeffa (Bishop)
on Sep 02, 2003 at 12:53 UTC ( [id://288308]=note: print w/replies, xml ) Need Help??


in reply to Removing underline tags with regexp

See? We keep telling you to use a parser for this ... you keep refusing and you keep coming back with quetions. Next you'll be wanting to do something to <b> and <i> tags. :)

In Regexp conundrum you specify that you want to "remove letter-spacing and word-spacing attributes from my in-document style sheet." Sounds like you should specify a second style sheet that looks the way you want it to. If this is your site ... problem solved, if not, then you could use regular expressions to change to a different CSS file. I would use HTML::TokeParser::Simple. If this is not your site and the CSS is all inline ... then maybe you could simply "turn off "CSS. There are so many potential solutions ... this is why you should be very descriptive in what you are doing and why you are doing it.

In Re: Problems Trying to Send E-Mail and Insert into Database, you say that "I've managed to extract image tags and re-write the changes, so I'm heading in the right direction..." No. You've been going the wrong direction ever since. :(

In CPAN module download probs..., you do good! You tried to install a CPAN module, but it didn't work. More than likely, you tried to install a tar ball (which is for Unix) on a Windows box. Since you are using Activestate, you should be using PPM. barbie gave you a clue about this at Re: CPAN module download probs..., did you see this after you posted Re: CPAN module download probs...?

Ok, enough tracking. ;) Where am i going with all of this? It is time for you to learn how to install PPM's. Me? I have never done it. I use Linux. But, if you invest as much energy into getting PPM's to work on your computer as you have trying to take down windmills with a lance (parsing HTML with regular expressions), you will succeed. And then you will have a nice set of modules to help you with this task.

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-03-28 22:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found