Select inline styles
Selects inline styles. I purposely excluded quotation marks from the character set because they cause the expression to select attributes of other tags on the same line.
Edit: Here's a shorter way of accomplishing the same thing:
It's probably worth adding a space before the expression to make sure that you don't leave in unnecessary spaces in the tag and to avoid selecting things that are not styles, such as the bold part of
style="[\s\d\w\.\-\:\;]+"
Edit: Here's a shorter way of accomplishing the same thing:
style="[^"']+"
It's probably worth adding a space before the expression to make sure that you don't leave in unnecessary spaces in the tag and to avoid selecting things that are not styles, such as the bold part of