Multiline Regular Expression search and replace!

EditPad Pro has better regex capabilities than any other editor I've ever used.

Also, I suspect you have an error in your regex — [\r\n.] will match only carriage returns, newlines, and full stops. If you're trying to match any character (i.e. "dot operator plus CR and LF), try [\s\S] instead.


Notepad++ can now handle multi line regular expressions (just update to the latest version - feature was introduced around March '12).

I needed to remove all onmouseout and onmouseover statements from an HTML document and I needed to create a non-greedy multi line match.

onmouseover=.?\s*".*?"

Make sure you check the:

[ ] . matches newline
checkbox if you want to use the multi line match capability.