Just started using ereg() today...
It seems that the array argument that is supposed to hold the matches only holds 10 elements no matter the number of groups in the regex expression. It holds only the first 9 marches (Element 0 holds the original string being parsed). If I have less than 9 groups the array still has ten elements (The latter unused ones are empty).
I can't find any mention of this limitation in the docs. Am I missing something?