Multiline Regular Expression search and replace!

regex, text-editor

Solution

My personal recommendation is IDM Computing's UltraEdit (www.ultraedit.com) - it can do regular expressions (both search and replace) with Perl, Unix and UltraEdit syntax. Multi-line matching is one of the capabilities in Perl regex mode in it.

It also has other nice search capabilities (e.g search in specific character column range, search in multiple files, search history, search favorites, etc...)

(source: ultraedit.com)

Problem

I've hit a wall. Does anybody know a good text editor that has search and replace like Notepad++ but can also do multi-line regex search and replace? Basically, I am trying to find something that can match a regex like: search `oldlog\(.*\n\s+([\r\n.]*)\);` replace `newlog\(\1\)` Any ideas?

Original source