Re: Another regex question



On Jul 15, 7:04 am, Knute Johnson <nos...@xxxxxxxxxxxxxxxxxxxxxxx>
wrote:
Is there a way to get multiple capturing groups without having multiple
sets of parenthesis?

"ABCDEFGHIJKL"

Regex "(\\w{3})" will match 3 letters

"(\\w{3}){4}" will match all four sets of three letters but there will
be only one capturing group.

Is there a way to get multiple capturing groups without doing
"(\\w{3})(\\w{3})(\\w{3})(\\w{3})"?
Not AFAIK.

Thanks,

--

Knute Johnson
email s/nospam/knute2008/

--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access

.