05-29-2009, 04:48 AM
Macro
In replacerx, the first string is regular expression (rx), the second - replacement.
In rx:
^ - beginning
() - remembers the enclosed part
\$ - $ (because $ is special symbol, it is with \)
$ - end
In replacement:
$1, $2 - first and second remembered parts
$$ - $ (in replacement, $ is special symbol, and $$ is its escape sequence)
In replacerx, the first string is regular expression (rx), the second - replacement.
In rx:
^ - beginning
() - remembers the enclosed part
\$ - $ (because $ is special symbol, it is with \)
$ - end
In replacement:
$1, $2 - first and second remembered parts
$$ - $ (in replacement, $ is special symbol, and $$ is its escape sequence)