in reply to Regex: Changing $1
My understanding is that you want to modify the part of the string between the quotes? One way is to use the e flag in the substitution operator s/// to replace $1 with a modified version, in the following example with an upper case version:
s/"(.+?)"/'"'.uc $1.'"'/e;
|
|---|