It's easier because it's already written, it works, and you don't have to know how it works to use it.
The problems with regular expressions and HTML is that HTML isn't required to be regular. It's not hard to write a simple regex that processes simple HTML, but it's easy to write realistic HTML that a regex won't process.
In reply to Re: Re: Re: Removing html comments with regex
by chromatic
in thread Removing html comments with regex
by n4mation
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |