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
13368 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
+1
Singh002
over 7 years ago
Hi
Soumya.Behera
,
You can try below code:
load(
local!number:"1234567890",
like(local!number,"[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]")
)
Thanks
Abhishek
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Reply
+1
Singh002
over 7 years ago
Hi
Soumya.Behera
,
You can try below code:
load(
local!number:"1234567890",
like(local!number,"[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]")
)
Thanks
Abhishek
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Reject Answer
Cancel
Children
No Data