I am trying to implement the phone validation for lightning flow screen. Here is what i tried and it's working in https://regex101.com/, But when am trying to save in lightning flow screen input field, it's saying syntax error. Can someone help on it.

^(\+)\w{8,10}$ Need format of +123456789, +12345678, +1234567890.

Thank you.


Backslashes are escape characters, so to get them into the regex, you need to double-up on them:


You also probably meant to restrict to just digits:

  • Thanks @sfdcfox, This worked. – anji reddy Oct 14 '20 at 16:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.