31Jan/090
10 digit regex ruby (for phone numbers)
How to check for 10 (ten) digits, no more, no less, using regular expression in ruby on rails with ruby:
validates_format_of :phone,
:with => /^\d{10,10}$/
useful for american phone numbers.
How to check for 10 (ten) digits, no more, no less, using regular expression in ruby on rails with ruby:
:with => /^\d{10,10}$/
useful for american phone numbers.