I need to capture a 2 groups that are required, the thing is that the 2nd group is all ordered optional elements
so I thought I would do it like this
(a)(b?c?d?)
Problem is sometimes it only captures "a" only (it assumes group 2 is already there because its all optional :S)
anyway here is what I want to capture
ab
ac
ad
abcd
And here is not what I want to capture
a
b
bc
bcd
d
acbd