I have a form with an INPUT TYPE TEXT field.
I use it to save phone numbers.
What value to put in the VALIDATIONS RULES PATTERN to only accept numbers starting with 229?
THANK YOU
Armel
I have a form with an INPUT TYPE TEXT field.
I use it to save phone numbers.
What value to put in the VALIDATIONS RULES PATTERN to only accept numbers starting with 229?
THANK YOU
Armel
Hi Clarisse, the pattern should be :
/^(229)\d/
To add to @Max_Saravia his answer: I recommend these type of tools to figure out what you need https://regexr.com/
Thank you for your answers. My problem is solved.