Possible Duplicate:
How to split string into array as integers
I have a “3×2” string.
How can I constrain with regex to cover these validations:
- validate presence of first number
- validates that there’s a “x” and only one.
- validate the presence of the second number.
Decoded:
x