I have a regexp:
/(alpha)|(beta)|(gamma)/gi
Some text to match against:
Betamax. Digamma. Alphabet. Hebetation.
The matches are:
beta, gamma, alpha, beta
The values I am looking would be:
1,2,0,1
...can I ascertain the index of the group that matched in the regexp?