Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Suggested Answer
+1
person also asked this
people also asked this
Replies
8 replies
Answers
1 answer
Subscribers
9 subscribers
Views
13458 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Phone Number Validation
Soumya.Behera
over 8 years ago
I want a comprehensive regular expression which can work in Appian for phone number validation. So far on google I found these-
"/^\\d{10}$/",
"/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/",
"/^\\+?([0-9]{2})\\)?[-. ]?([0-9]{4})[-. ]?([0-9]{4})$/"
But, I found some valid numbers which return false when compared with these regex. Has anyone found any?
OriginalPostID-254045
Discussion posts and replies are publicly visible
Parents
0
PhilB
A Score Level 1
over 8 years ago
The regular expression syntax is the same, but the flags are sometimes handled differently depending on the Appian RegEx plugin you're using. There are also some things that Appian can do that JavaScript cannot, such as positive and negative lookbehind.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
PhilB
A Score Level 1
over 8 years ago
The regular expression syntax is the same, but the flags are sometimes handled differently depending on the Appian RegEx plugin you're using. There are also some things that Appian can do that JavaScript cannot, such as positive and negative lookbehind.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data