Problems? Is your data what you think it is? | |
PerlMonks |
Highlight your resultby tune (Curate) |
on Jul 18, 2001 at 20:07 UTC ( [id://97720]=perlquestion: print w/replies, xml ) | Need Help?? |
tune has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
It is really annoying but I cannot find the right solution to my problem. Maybe it is a very simple regexp, maybe an intermediate one. That means i am a very beginner regexp-user than. Definitely not a hacker :( When I have some results in a search (HTML), i would like to highlight it. For example: Good, it works fine... Until there is an URL, and the word is found after href=" but before the ending doublequote. (e.g. <a href="mp3.com/artist">mp3.com/artist</a>, and the search word to highlight is "mp3") It messes the HTML code up. I don't have a clue what is the right method in this case. Please help! TIA --
Back to
Seekers of Perl Wisdom
|
|