regexperlpcreultraedit

In UltraEdit for Mac, I want to replace group0(full match) with group0 plus some more


I'm using UltraEdit in Perl regex mode to do that. i.e. (cat) (dog) replaced with $0\n$1 $2

Although the $1 and $2 worked, I couldn't find a way to make $0 work.

Does anyone experience this issue?


Solution

  • When using "Perl" regular expressions in Ultra Edit,

    This is documented here. (Scroll down to "Perl regex output modifiers".)

    This is consistent with Perl, where $0 contains the first argument to the program (the name of the program).

    Screenshot of Demonstration