J
Jose
There's something for me to learn with this example, i'm sure 
Given this text:
"[Contact].[Region].[All ContactRegion].[ASIA
PACIFIC].[Japan].[Japan]"
and my first attempt at capture the groups:
"(?:\[)(.+?)(?:\])"
RegExTest gives me what i expect: 6 captured groups: Contact, Region,
All ContractRegion, ASIA PACIFIC, Japan, Japan.
However, with this C# code, i just get 2 capture groups: "[Contact],
Contact":
Regex r = new Regex(@"(?:\[)(.+?)(?:\])");
Match m = r.Match(LongParameterValue);
GroupCollection gc = m.Groups; //group count is 2
Am i capturing this incorrectly in C#?
Thanks.

Given this text:
"[Contact].[Region].[All ContactRegion].[ASIA
PACIFIC].[Japan].[Japan]"
and my first attempt at capture the groups:
"(?:\[)(.+?)(?:\])"
RegExTest gives me what i expect: 6 captured groups: Contact, Region,
All ContractRegion, ASIA PACIFIC, Japan, Japan.
However, with this C# code, i just get 2 capture groups: "[Contact],
Contact":
Regex r = new Regex(@"(?:\[)(.+?)(?:\])");
Match m = r.Match(LongParameterValue);
GroupCollection gc = m.Groups; //group count is 2
Am i capturing this incorrectly in C#?
Thanks.