Yes. the regex centered ops s/// and m// take \1 in the regex itself for the first fully matched pattern in parentheses. $1 means the same in the second argument or until the next regex.
After Compline,
Zaxo
In reply to Re: regex question...
by Zaxo
in thread regex question: $1 vs. \1
by kiat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |