HTML parsing aside, I'd prefer two regexen to one containing the two pasted together somehow.
The computational complexity of regexen increases dramatically with length. That makes two smaller and simpler ones better in my book.
Since what you are looking for seems to be literals, you may want to think of index instead of a regex.
After Compline,
Zaxo
In reply to Re: combine two-part regex test
by Zaxo
in thread combine two-part regex test
by perrin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |