in reply to how to make // not return what is in a parenthesis?
I can't reproduce your output, but are you looking for something more like:
while (/A(BC)?D/g) { push @matches, $1 if $1; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to make // not return what is in a parenthesis?
by beanryu (Novice) on Aug 01, 2010 at 01:58 UTC |