Here are some Regex Tools which help you to write, test regex patterns.
Regex Match Tracer is a tool to compose and test regular expressions. With help of this software, you can compose complex regular expressions easily and quickly. Details
If you know how to write a wildcard, you can get corresponding regex by this tool. If you feel it is difficult to write a long regex for HTML, you can write a wildcard from HTML and then get the regex. Enter