I needed a regex to find the opening location of an html tag with a specific class. It is ugly, and it relies on many false assumtions, yet be honest, this will work in most cases. Also checks if the tag is in a line that is commented out. Again, we wont know if it is commented out if it is done on another line, yet in most cases this will work.