I'm trying to build a RegEx string for use in a find and replace in sublime text or notepad++ to remove strikethrough text from a html page. In general, the strikethrough is formatted as follows:
<span style="color: rgb(255,0,0);"><s>Some text here</s></span>
The best way to limit a greedy match is to make it stop at a specific character.
[abc] is a character class meaning any of a, b, c, while
[^abc] means anything but a, b, c. So
[^<] means anything but
The other (much slower) way is to set the
+ operator to return the shortest match. In Perl-compatible regex, you do this with