I use PCRE regular expressions for search and replace very often when working with a text editor and I was left quite unhappy after I found out that in powerful Unix command line tools like `perl`, `awk` or `sed` it's fairly complicated to use a bit advanced multiline regex and requires various hard to remember syntax for various situations.

Is there a command line tool for Linux in which search and replace (for all occurences in the whole file) using a more complex multiline regex is as simple as:

 magicregextool 's/.* > (.*) joined the channel\.\n(((?!.* \1 (was kicked from channel\.|was banned from channel\.)\n).*\n)+?.*\1 disconnected)/\2/' file.txt

i.e. the regex to match is the same as I would place in the `search for` field in a text editor, the replacement string can handle multiline regex as well and there's no need for any convoluted syntax?