I'm trying to use the following regex pattern to validate phone numbers:
/+? d{1,4}?[-. s]?(? d{1,3}?)?[-. s]? d{1,4}[-. s]? d{1,4}[-. s]? d{1,9}/g
I works fine on https://regex101.com/
However, the regex_matches
filter returns always false
.
The same problem here. No matter what the input is, returns 'the phone number is not valid'.
Try +1 123 456 7890
for instance. The pattern works on regex101 but not on here.
Does anyone know why?