The stupid question is the question not asked | |
PerlMonks |
Re: Removing underline tags with regexpby jeffa (Bishop) |
on Sep 02, 2003 at 12:53 UTC ( [id://288308]=note: print w/replies, xml ) | Need Help?? |
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)
In Section
Seekers of Perl Wisdom
|
|