Regex for phone number

PHOTO EMBED

Thu Jan 27 2022 17:34:27 GMT+0000 (Coordinated Universal Time)

Saved by @jhambach #n8n #json #bandwidth

^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$
content_copyCOPY

When using this in n8n, make sure to include the forward slash at the beginning and end of the regex above, like this: /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/

https://ihateregex.io/expr/phone/