In code that I am reading I have the following regular expression:

Code:
'([0-9]*)x([0-9]*)'
and for the code:
Code:
"400x300"
It give me the following array:
Code:
[400x300,400,300]
I understand why the first element in the array, 400x300, but how come the last two match the regular expression?

They don't have the x.

Can someone please explain to me why the last 2 element match the regular expression.