Re: throwing away () matches

From: Felix Lee <flee_at_teleport.com>
Date: Mon, 22 Feb 1999 13:33:53 -0800

Brian Denheyer <briand_at_deldotd.com>:
> I was noticing that I do a lot of () matching of things I don't want. e.g.,
> "([a-z]+(\\[([0-9]+)\\])?"

perl5 regexps use (?:foo) as a grouping construct that's not
counted as a match. (there are also a couple other (?Xfoo)
constructs, like (?=foo) for lookahead assertions, etc.)
--
Received on Mon Feb 22 1999 - 22:35:24 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST