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?
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?
Copyright © 2021 Jogjafile Inc.
When using "Perl" regular expressions in Ultra Edit,
$&contains the matched text.$`contains the portion of the document leading up to the matched text.$'contains the portion of the document following the matched text.This is documented here. (Scroll down to "Perl regex output modifiers".)
This is consistent with Perl, where
$0contains the first argument to the program (the name of the program).