Validations rules pattern

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/

1 Like

To add to @Max_Saravia his answer: I recommend these type of tools to figure out what you need https://regexr.com/

2 Likes

Thank you for your answers. My problem is solved.

1 Like