Date: 07/25/06
(PHP Community) Keywords: no keywords
Is there a way to check, with a regular expression, that only numerics, commas and dashes exist in a string -- and that it begins and ends with a numeric?
I tried:
/^[0-9\-\,]$/
but this expression rejects strings that contain only numerics, commas and dashes ( ex: 06072501796-06072501798, 06072501799 )