Regular Expressions 101

Community Patterns

1...34567...902

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(:?\+[Il]* ?)?[\d()–-][\d ()\-"–OОli_|]{6,20}[\dOОli|]\d
/
gmi

Description

This is a number also 123-456-7890 This is not a number: 123456 This is not a number, but an address 123 456 My parameters are 90/60/90 - 120/150/120 - not a phone number I am cheeky and I use letter 0 instead of zero 604_213_0293 Or I use | symbol and also 604_2|3_0293 may happen The most classical Canadian number is +1(604)123-4567 hi hi Dashes can be different 123-456–7890 And looks like phone +I(800)-2l4-15O but contain combination with letter

Submitted by anonymous - 4 years ago