You are here

constant PHONE_BR_REGEX in Phone 7

Same name and namespace in other branches
  1. 6 phone.br.inc \PHONE_BR_REGEX

@file CCK Field for Brazilian phone numbers. (based on CCK Field for French phone numbers.)

2 uses of PHONE_BR_REGEX
format_br_phone_number in include/phone.br.inc
Formatting for Brazilian Phone Numbers.
valid_br_phone_number in include/phone.br.inc
Verification for Brazilian Phone Numbers.

File

include/phone.br.inc, line 8
CCK Field for Brazilian phone numbers. (based on CCK Field for French phone numbers.)

Code

define('PHONE_BR_REGEX', "/^(\\+|0{2}|)?(55|0|)[\\s.-]?((\\(0?[1-9][0-9]\\))|(0?[1-9][0-9]))[\\s.-]?([1-9][0-9]{2,4})[\\s.-]?([0-9]{4})\$/");