| Next | Regular Expression Mastery | 54 |
Occasionally you want the grouping effect of (...) without the capturing effect
/ab+/

/(ab)+/

Use (?:...) instead
/(?:ab)+/

In Perl 6, this skanky notation will be replaced with [...]
| Next | ![]() |
Copyright © 2002 M. J. Dominus |