Re: MatchResult-->Group Issue

Sandeep Deshpande <[email protected]> Tue, 15 Jun 2010 12:07:14 +0530
Newsgroups gmane.comp.jakarta.oro.user
Message-ID <[email protected]>
--00163631035b03709104890bd6c7
Content-Type: text/plain; charset=ISO-8859-1

Daniel,

Thanks a lot!!.
Your suggestion helped me to over come a major hurdle I was facing :)

Thanks,
Sandeep

On Fri, Jun 11, 2010 at 7:38 PM, Daniel F. Savarese <[email protected]>wrote:

>
> In message <[email protected]>,
> Sand
> eep Deshpande writes:
> >Also results contains 8 results instead of 6 matches.
> >So, how do I make it to contain only top-level matches in the results?
>  How
> >to make it to match only 6 results as I am expecting..
> >I know that this problem is being caused by inner brackets () of the
> >IP_ADDR_REGEX ..
> >How to fix it??
>
> Use non-capturing parentheses for groups you don't want to capture.
> For example, (foo((bar)) produces two captured groups: foobar and bar.
> In contrast, (foo(?:bar)) produces one captured group: foobar.
>
> daniel
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

--00163631035b03709104890bd6c7--