if (my ($prefix, $matched, $suffix) = /^(.*?)"(.+?)"(.*)/) { $matched = ... # Do what you need. print qq($prefix"$matched"$suffix\n); }
In reply to Re: Regex: Changing $1
by choroba
in thread Regex: Changing $1
by packetstormer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |