1) I didn't add the logic to this program to
handle data that contains < and > and
& data. Sometimes the code will work,
sometimes it won't.
I just created this program as toy to play with
regular expession in JavaScript.
2) I don't validate any of the regular expression entered.
If you enter an invalid regular expression the code usually
just displays the results from the last valid regular expression
/regular expression/
/regular expression/igm