Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Stripping HTML tags with Regular Expressions.

by jeroenes (Priest)
on Oct 04, 2001 at 19:18 UTC ( #116726=note: print w/ replies, xml ) Need Help??


in reply to Stripping HTML tags with Regular Expressions.

A few comments:

  1. Regexes and HTML don't like each other
  2. CPAN is our valued friend. Make it your friend too, will save you lots of time.
  3. eg, see HTML::Parser
  4. see also 7 Stages of Regex Users
  5. Please don't use this: s/<[^>]*>//g as it is a very bad idea. See previous point.


Comment on Re: Stripping HTML tags with Regular Expressions.
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2015-07-04 18:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls