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
- More Help: Complex Regex Allen_Gregg
- Re: More Help: Complex Regex Curtis Jewell
- Re: More Help: Complex Regex Paul
- Re: More Help: Complex Regex David M. Lloyd
- Re: More Help: Complex Regex Johnathan Kupferer
- Re: More Help: Complex Regex Timothy Kimball
- Re: More Help: Complex Regex Timothy Kimball
