0 Replies - 1559 Views - Last Post: 20 June 2009 - 05:09 AM

#1 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Australian International Telephone Number Validation

Posted 20 June 2009 - 05:09 AM

Description: Australian International format: +61x xxxx-xxxx The first x being the area code and the rest of the x's is the phone number. The [2-9] is so we only require just one digit between two and nine inclusively. The [[:space:]] class ensures a space is used. The last part, [0-9]{4}-[0-9]{4}$ tells the Regex engine that the number must have a group of four digits then a hyphen with another set of four digits ending with an end of string character.

Is This A Good Question/Topic? 0
  • +

Page 1 of 1