Phone number verification with RegEx

0
I created a sub-microflow to verify form input fields. I'm stuck with phone number verification using a RegEx expression which keeps being rejected by the Decision element as being incomplete or incorrect.    The Regex checks against the following patterns: 0790000000 and 0770000000 and includes country code +962   Maia helped me produce this pattern:  IsMatch($Registration/PhoneNumber, "\+9627[79]\d{7}|07[79]\d{7}")     I would appreciate some assistance.    
asked
2 answers
1

Although Maia's answer is correct, you can write this in a shorter and more readable way, and like Fouad already mentioned, use single quotes:

(\+962|0)7[79]\d{7}
IsMatch($Registration\PhoneNumber, '(\+962|0)7[79]\d{7}'))

 

answered
0

Solved.

 

Replace double quotes with single quotes!

answered