You are here

constant PHONE_CH_REGEX in Phone 6

Same name and namespace in other branches
  1. 7 include/phone.ch.inc \PHONE_CH_REGEX

@file CCK Field for Switzerland phone numbers.

2 uses of PHONE_CH_REGEX
format_ch_phone_number in ./phone.ch.inc
Formatting for Switzerland Phone Numbers.
valid_ch_phone_number in ./phone.ch.inc
Verification for private/standr switzerland Phone Numbers (E.164/2002). According to http://en.wikipedia.org/wiki/Telephone_numbers_in_Switzerland#After_2002 (Released 2002)

File

./phone.ch.inc, line 8
CCK Field for Switzerland phone numbers.

Code

define('PHONE_CH_REGEX', "%(\\+41|0|0041)([2-9]\\d{8})\$%");