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;
In reply to Re: Regex: Changing $1
by hdb
in thread Regex: Changing $1
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |