in reply to Behavior of /g when there are capture groups
my @excerpts = $fc =~ /(?n:$re2)/g;
From perlre:
- n
- Prevent the grouping metacharacters () from capturing. This modifier, new in 5.22 ...
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Behavior of /g when there are capture groups (/n)
by ExReg (Priest) on Apr 21, 2016 at 15:05 UTC | |
by RonW (Parson) on Apr 26, 2016 at 16:47 UTC |