I've created a simple regular expression to locate any tag within an HTML document, as we are updating over 40 templates that were previously edited by a terrible WYSIWYG editor. This editor added style="font... tags all over the place, so I need to remove them.
The issue is that some of these tags have line breaks in between the styles (similar to writing CSS) and I can't seem to include line breaks in my regex pattern.
Here's what I currently have:
style="font(.*?)"
I'm using TextMate to search for this pattern, and it works well except for styles with hard line breaks.
Any suggestions?