There's more than one way to do things | |
PerlMonks |
Re: How To Remove Warnings From Regexby Athanasius (Archbishop) |
on Feb 04, 2024 at 04:22 UTC ( [id://11157515]=note: print w/replies, xml ) | Need Help?? |
Hello roho, Change $1 to \1 within the regex:
Output:
As you can see:
See e.g. Capture groups. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|