I am trying to get my head around RegEx and I have a variable I am trying to replace.
The variable is initialised as follows:
name = "" and I want a regex to replace the "" with "personName"
I have the following RegEx so far:
^(name).*?("")\2 which sets the capture groups and I have selected group 2 but I am not sure how to insert the replacement text.
Note: This will be used with sed in a script.
 
    