<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Phone Number Validation</title><link>https://community.appian.com/discussions/f/rules/9102/phone-number-validation</link><description>I want a comprehensive regular expression which can work in Appian for phone number validation. So far on google I found these- &amp;quot;/^\\d{10}$/&amp;quot;, &amp;quot;/^\\(?([0-9]{3})\\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/&amp;quot;, &amp;quot;/^\\+?([0-9]{2})\\)?[-. ]?([0-9]{4})[-. ]?([0-9]</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/52054?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 08:44:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1a5a4d4-cab1-4959-abac-57ca97b86a73</guid><dc:creator>TJ</dc:creator><description>&lt;p&gt;I feel you have to write different regular expressions based on the country selected as different countries have different formats for phone number and the length may also vary.&lt;/p&gt;
&lt;p&gt;There was one more discussion recently on forum for the same. Please go through and see if you could find something useful. Following is discussion link :&lt;/p&gt;
&lt;p&gt;&lt;a href="/discussions/f/user-interface/11731/phone-number-validation" target="_blank"&gt;https://community.appian.com/discussions/f/user-interface/11731/phone-number-validation&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/52053?ContentTypeID=1</link><pubDate>Mon, 29 Jan 2018 04:19:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71e1fc78-f5db-409b-a70b-b18751d5e82c</guid><dc:creator>lokeshk822</dc:creator><description>use the below regex, it will help you:&lt;br /&gt;
&lt;br /&gt;
if(len(&lt;br /&gt;
local!variable&lt;br /&gt;
)&amp;gt;10,cons!WARNING_MESG,&lt;br /&gt;
&lt;br /&gt;
{&lt;br /&gt;
if(&lt;br /&gt;
not(regexmatch(&amp;quot;^([0-9]{1,10})$&amp;quot;,local!variable)),&lt;br /&gt;
&amp;quot;Warning message&amp;quot;,&lt;br /&gt;
{}&lt;br /&gt;
)})&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/52047?ContentTypeID=1</link><pubDate>Sun, 28 Jan 2018 09:56:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f0b3e0b2-f137-4d03-bee7-350613aefaf5</guid><dc:creator>Singh002</dc:creator><description>Hi &lt;a href="/members/soumyab243"&gt;Soumya.Behera&lt;/a&gt; ,&lt;br /&gt;
&lt;br /&gt;
You can try below code:&lt;br /&gt;
load(&lt;br /&gt;
local!number:&amp;quot;1234567890&amp;quot;,&lt;br /&gt;
like(local!number,&amp;quot;[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]&amp;quot;)&lt;br /&gt;
)&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Abhishek&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/40620?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 19:12:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4a0ec6cd-67e4-4509-83c6-482ab108619a</guid><dc:creator>PhilB</dc:creator><description>The regular expression syntax is the same, but the flags are sometimes handled differently depending on the Appian RegEx plugin you&amp;#39;re using. There are also some things that Appian can do that JavaScript cannot, such as positive and negative lookbehind.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/40619?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 19:09:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5cf79eb-91ca-4bc3-9f4d-4d44e875f278</guid><dc:creator>Soumya.Behera</dc:creator><description>This site is for Javascript regex. Correct me if I&amp;#39;m wrong, isn&amp;#39;t this format not compatible with Appian regular expression acceptable format?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/40616?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 19:00:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:95591d0c-1076-4364-9676-bc85c7876697</guid><dc:creator>PhilB</dc:creator><description>Well, given most countries have their own phone number syntax, you&amp;#39;ll need a different regex for each. I&amp;#39;d suggest having a look through the examples on &lt;a href="http://regexr.com/"&gt;http://regexr.com/&lt;/a&gt; - and using that to construct your regex as it&amp;#39;s very helpful.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/40615?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 18:45:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cc772504-8f81-4369-ba74-4d749a5ac229</guid><dc:creator>Soumya.Behera</dc:creator><description>Let&amp;#39;s say, for most countries. Then what?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Phone Number Validation</title><link>https://community.appian.com/thread/40611?ContentTypeID=1</link><pubDate>Tue, 20 Dec 2016 17:47:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3f60bfca-afbe-4af7-8dd4-04ca1aa107d6</guid><dc:creator>PhilB</dc:creator><description>For which country? :)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>