qr// automatically wraps its expression in a non-capturing group:
>perl -wMstrict -le "my $regex = qr'(?:\[.*?\])'; print $regex; " (?-xism:(?:\[.*?\]))
In reply to Re^2: Advanced replace function
by AnomalousMonk
in thread Advanced replace function
by sans-clue
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |