in reply to combine two-part regex test

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