There's already a lot of good advice here, but just one more thing...

Some people write HTML code like this

<TAGNAME
   FOO='all your base'
   BAR='are belong to us'
 >

Using:
        s/<.*?>//g

Doesn't account for that and it won't match.

To allow '.' to match line breaks in tags, use:

      s/<.*?>//gs
- Johnathan

Reply via email to