Regex

From Mosuma
Jump to: navigation, search

multiple line html tags replacement

This vim regex will remove all instance of

<v: ####> </v:> <x: ####> </x:>

%s/<\/*[vx]:\_[^>]*>//g


This vim regex will remove invalid tags generated by microsoft excel html export:

%s/<\!\[if.*\]>\_[^\[]*\[endif\]>//g