in reply to regexp: non-capturing grouping in replacement possible?
A substitution substitutions not only the captured part of the string, but the matched part of the string. Using zero-width assertion you can reduce the matched part of the string to the captured part.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp: non-capturing grouping in replacement possible?
by diweooy (Novice) on Nov 26, 2009 at 13:11 UTC | |
by happy.barney (Friar) on Nov 26, 2009 at 13:27 UTC | |
by moritz (Cardinal) on Nov 26, 2009 at 14:23 UTC | |
by diweooy (Novice) on Nov 26, 2009 at 14:26 UTC |