Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Try HTML::Parser

by Kozz (Friar)
on Feb 18, 2002 at 17:36 UTC ( #146186=note: print w/ replies, xml ) Need Help??

in reply to shameful reg expression

You should give HTML::Parser module a try. Otherwise, I don't know what your regex looks like (where you're capturing the text), but you might try placing into your existing regex code

which captures a string of characters that do NOT match either > or <. Keep in mind, however, that this should be placed correctly in the regex, otherwise it could also give you matches like "td" and "b".

But again, this may not necessarily work in all situations, even if you write a damned good regex. For best results, look into HTML::Parser.

Comment on Try HTML::Parser
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2015-11-26 00:07 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (693 votes), past polls