Re: search & replace
I've been looking for a while in SuperEdi for a method of removing blank lines and/or replacing with text that includes line breaks. I think that a tweak to 'Replace in Documents.html' as follows would be of great value to many:- in OnReplace(), just after: var replace = document.getElementById('Replace').value; add the lines:- replace.replace( "\\r", "\r" ); replace.replace( "\\n", "\n" ); replace.replace( "\\t", "\t" ); This will allow the Replace value to include newlines and tabs - whether or not the Find is done by regular expression. No doubt someone could refine this further, but this works well for me right now.
|