gamerfu
04-03-2009, 11:58 PM
I am trying to figure out how to code the regular expression as a valid expression for:
0123-4567-8901
I only want to accept '0123456789' and the '-' characters.
Here is the regular expression code vBAdminCP links to:
http://us3.php.net/manual/en/function.preg-match.php
But, I am a bit confused how to control this expression for a mix of numbers and the dash character with the above bolded format.
All ideas welcome. :cool:
0123-4567-8901
I only want to accept '0123456789' and the '-' characters.
Here is the regular expression code vBAdminCP links to:
http://us3.php.net/manual/en/function.preg-match.php
But, I am a bit confused how to control this expression for a mix of numbers and the dash character with the above bolded format.
All ideas welcome. :cool: