Quote:
Originally Posted by pepak
1) If it did work, it would be quite dangerous - it could easily remove text you don't want removed.
2) I still don't understand why most of you people keep using the "m" flag, which is NOT suitable for the usage cases displayed in this thread. For example, Adolson's regexp should only use ?is, not ?ism.
|
1) When I put in my query, the Regex Builder highlights only stuff that I want removed. So therefore, it should work, right?
2) I put the m because chaley's post indicated a regex that was supposed to work, and I based mine on that. I tried without the m as well, it doesn't work either.
This one appears to have worked in vim, using the html generated by the debug output.
:%s/[0-9]\{1,}<\/p><p>\n\(\s*\S\)\{5,}<\/p><p>//g