Re: throwing away () matches

From: Brian Denheyer <>
Date: Mon, 22 Feb 1999 14:13:57 -0800 (PST)

>>>>> "Felix" == Felix Lee <> writes:

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

    Felix> perl5 regexps use (?:foo) as a grouping construct that's not
    Felix> counted as a match. (there are also a couple other (?Xfoo)
    Felix> constructs, like (?=foo) for lookahead assertions, etc.)
    Felix> --

So for my example it would look like :


correct ? In this respect the match of the brackets AND number
wouldn't be stored, but the number match would be, correct ??

Well I guess I could try it out in perl, but this is the stk mailing
list ;-)

It's a good idea to use something that's already out there, thanks for
the info.

Brian Denheyer   
Deldot Design, Inc.        (503) 788-1607
\/.d = Electronic design and development
Received on Mon Feb 22 1999 - 23:14:36 CET

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