Browse Source

Update regex.rst

FusionPBX 7 years ago
parent
commit
2bd11081b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      source/additional_information/regex.rst

+ 1 - 1
source/additional_information/regex.rst

@@ -4,7 +4,7 @@ Regular Expressions
 
 
 * ^ Start of the string
 * ^ Start of the string
 * $ End of the string
 * $ End of the string
-* ? optional
+* ? optional example 1? makes the 1 optional
 * \\d{10}  10 digits
 * \\d{10}  10 digits
 * ( and ) gets matching digits inside brackets sets a $1 and second set of brackets creates $2
 * ( and ) gets matching digits inside brackets sets a $1 and second set of brackets creates $2
 * ^\\+?1?(\\d{10})$   10 to 11 digits and e164 format sets $1 to 10 digits
 * ^\\+?1?(\\d{10})$   10 to 11 digits and e164 format sets $1 to 10 digits