in reply to regexp: non-capturing grouping in replacement possible?
my $str = 'hello kitty 003x009 spanish'; $str =~ s/0*(3)/$1/; print $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp: non-capturing grouping in replacement possible?
by diweooy (Novice) on Nov 26, 2009 at 14:21 UTC | |
by happy.barney (Friar) on Nov 26, 2009 at 16:14 UTC |