I can fix this by assigning $2 go a new scalar variable first and then using the new variable.Or simply $here =~ s/(^(#+)\s.*?\g2)/$1 =~ s|\n||rg/mse;
In reply to Re: Can't figure out why capture group is not output by substitution regex
by Eily
in thread Can't figure out why capture group is not output by substitution regex
by nysus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |