I cannot seem to find an exact answer with explanation, but I have a very simple Regular Expression (Find and Replace in Notepad++) I am trying to build but cannot seem to get it to work.
I have the string :
x1 expression x2 x-ray x3 rex x4 xylophone
and want to alter if to be :
$1 expression $2 x-ray $3 rex $4 xylophone
I can fine the patterns I am changing by using x[0-9]
, but I cannot get it to replace the xnumber with the $number.
I tried \$$0
but the replacement ends up as follows:
$x1 expression $x2 x-ray $x3 rex $x4 xylophone
Please help with explanation of how I can only extract the number from the string that is found.