<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to find out Valid Mobile Phone Number within field value. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11086#M1200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; FriedEgg,&lt;/P&gt;&lt;P&gt;Thank you for giving me instructions on US formate MP.&lt;/P&gt;&lt;P&gt;But it is an Chinese MP problem.&lt;/P&gt;&lt;P&gt;What valid format in china &lt;/P&gt;&lt;P&gt;is prefix 133,135,136 etc (about 20 prefix)&lt;/P&gt;&lt;P&gt;+a serial number with length=8&lt;/P&gt;&lt;P&gt;a total 11 numbers constitutes a valid number.&lt;/P&gt;&lt;P&gt;say 13333697005&lt;/P&gt;&lt;P&gt;what's on hand is a valid prefix data table MP_prefix&lt;/P&gt;&lt;P&gt;and a data set customer_MP with 4 calculated fields &lt;/P&gt;&lt;P&gt;t1leftcomlen (which means extracted from tel no with compressed left 11 characters),&amp;nbsp;&amp;nbsp;&amp;nbsp; t1rightcomlen&lt;/P&gt;&lt;P&gt; (which means extracted from tel no with compressed right 11 characters),&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; mpleftcomlen,&amp;nbsp;&amp;nbsp;&amp;nbsp; mprightcomlen.&lt;/P&gt;&lt;P&gt;I ask if anyone can help to give a solution based on the above resources.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Feb 2012 06:05:03 GMT</pubDate>
    <dc:creator>bbb_NG</dc:creator>
    <dc:date>2012-02-23T06:05:03Z</dc:date>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11084#M1198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 fields ,'Tel No' and 'Mobile Phone Number',&lt;/P&gt;&lt;P&gt;in which, Mobile phone number might exist in&amp;nbsp; Tel no field.&lt;/P&gt;&lt;P&gt;values might contain()*-+/ and '0-9' ,values may have prefix like zone ,country code.&lt;/P&gt;&lt;P&gt;there's possibility that customer input 2 Mobile phone numbers altogether as one field value.&lt;/P&gt;&lt;P&gt;General speaking, there's all possibility for the input for MP.&lt;/P&gt;&lt;P&gt;Criteria for selection,&lt;/P&gt;&lt;P&gt;as a valid MP number, it should start with&lt;/P&gt;&lt;P&gt;'133','139','150' etc(about 20 numberic prefix)&lt;/P&gt;&lt;P&gt;with a total length of the mp number equals 11,say 13333697005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I first &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SUBSTRn(t1.'Tel No'n, 1,11)) AS tel1left, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SUBSTRN(t1.'Tel No'n, LENGTH(t1.'Tel No'n)-11, 11)) AS tel1right,&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SUBSTRn(t1.'Mobile/Pager No'n, 1,11)) AS MPleft, &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (SUBSTRN(t1.'Mobile/Pager No'n, LENGTH(t1.'Mobile/Pager No'n)-11, 11)) AS MPright&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pick out those 4 fields.&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length((COMPRESS(t1.tel1left, '()-/,*&amp;amp;+'))) AS t1leftcomlen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length((COMPRESS(t1.tel1right, '()-/,*&amp;amp;+'))) AS t1rightcomlen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length((COMPRESS(t1.MPleft, '()-/,*&amp;amp;+'))) AS mpleftcomlen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; length((COMPRESS(t1.MPright, '()-/,*&amp;amp;+'))) AS mprightcomlen&lt;/P&gt;&lt;P&gt;find those compressed length=11&lt;/P&gt;&lt;P&gt;and I have a data MP_prefix.&lt;/P&gt;&lt;P&gt;can any one give hand how to pick out valid Mobile phone through the above 4 fields if exist?&lt;/P&gt;&lt;P&gt;if there's 2 valid, only the first found will be needed.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 02:57:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11084#M1198</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2012-02-23T02:57:05Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11085#M1199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Valid phone number and valid &lt;EM&gt;mobile&lt;/EM&gt; phone number are two very different concepts.&amp;nbsp; What is the ultimate goal here?&amp;nbsp; It is easiest to provide a small sample of input you expect and the output you would want to see.&amp;nbsp; What country or countries will these numbers be for?&amp;nbsp; Should only number for a certain list of countries be considered valid?&amp;nbsp; What is the significance of the prefix selection you mention.&amp;nbsp; One approach to validate phone numbers is to use regular expressions such as the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;^\d\d\d([-.\s]?)\d\d\d\1\d\d\d\d$|^(:?(:?\(\d\d\d\))?\s*\d\d)?\d[-.\s]?\d\d\d\d$&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above will not work for every case:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; text-align: -webkit-auto; word-wrap: break-word; white-space: pre-wrap;"&gt;Currently marks as valid, phone numbers of the following forms:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(734) 555 1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(734) 555.1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(734) 555-1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(734) 5551212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
(734)5551212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
734 555 1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
734.555.1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
734-555-1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
7345551212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
555 1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
555.1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
555-1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
5551212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
5 1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
5.1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
5-1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
51212

Currently marks as invalid, phone numbers of the following forms:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
734-555.1212&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
734-5551212&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I borrowed this regular expression from a Perl module called Number::Phone::US (&lt;A href="http://search.cpan.org/~kennedyh/Number-Phone-US-1.5/lib/Number/Phone/US.pm"&gt;http://search.cpan.org/~kennedyh/Number-Phone-US-1.5/lib/Number/Phone/US.pm&lt;/A&gt;) by Hugh Kennedy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 03:43:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11085#M1199</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-23T03:43:21Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11086#M1200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; FriedEgg,&lt;/P&gt;&lt;P&gt;Thank you for giving me instructions on US formate MP.&lt;/P&gt;&lt;P&gt;But it is an Chinese MP problem.&lt;/P&gt;&lt;P&gt;What valid format in china &lt;/P&gt;&lt;P&gt;is prefix 133,135,136 etc (about 20 prefix)&lt;/P&gt;&lt;P&gt;+a serial number with length=8&lt;/P&gt;&lt;P&gt;a total 11 numbers constitutes a valid number.&lt;/P&gt;&lt;P&gt;say 13333697005&lt;/P&gt;&lt;P&gt;what's on hand is a valid prefix data table MP_prefix&lt;/P&gt;&lt;P&gt;and a data set customer_MP with 4 calculated fields &lt;/P&gt;&lt;P&gt;t1leftcomlen (which means extracted from tel no with compressed left 11 characters),&amp;nbsp;&amp;nbsp;&amp;nbsp; t1rightcomlen&lt;/P&gt;&lt;P&gt; (which means extracted from tel no with compressed right 11 characters),&amp;nbsp;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;&amp;nbsp; mpleftcomlen,&amp;nbsp;&amp;nbsp;&amp;nbsp; mprightcomlen.&lt;/P&gt;&lt;P&gt;I ask if anyone can help to give a solution based on the above resources.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 06:05:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11086#M1200</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2012-02-23T06:05:03Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11087#M1201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would still be ideal if you can provide a small selection of sample data for what you have in 'tel no'n and 'mobile/pager no'n and what you want as output from the process.&amp;nbsp; This gives everyone the best opportunity to see what exactly you are dealing with and how to best aide you with a solution.&amp;nbsp; The fact that we are dealing with validating Chinese Mobile Phone numbers is helpful information as now I know the proper numbering system to reference and I can see why you are denoting the prefix selection which helps identify a mobile phone.&amp;nbsp; Also to ignore international numbers outside of China, will you also want to remove phone numbers from Hong Kong, Macau, etc...?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://en.wikipedia.org/wiki/Telephone_numbers_in_China"&gt;http://en.wikipedia.org/wiki/Telephone_numbers_in_China&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-top: 0.4em; margin-bottom: 0.5em; line-height: 19px; color: #000000; font-family: sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;In mainland China, &lt;A href="http://en.wikipedia.org/wiki/Mobile_phone" style="color: #0b0080; background-color: initial;" title="Mobile phone"&gt;mobile phone&lt;/A&gt; numbers have 11 digits in the format 1xx-xxxx-xxxx. The first three digits of mobile phone numbers (13x, 15x and 18x) designate the mobile phone service provider and the next four digits is a regional code and the last four digits are assigned by the mobile service provider as part of the customer ID.&lt;/P&gt;&lt;P style="margin-top: 0.4em; margin-bottom: 0.5em; line-height: 19px; color: #000000; font-family: sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;As the numbers were introduced over time, it is possible to recognize the age of a number: The oldest GSM numbers start with 1390..., the second oldest 1380... and 1300... Keeping the same number over time is somewhat associated with stability and reliability of the owner. The fourth digit was introduced later and is 0 for all old numbers. In a further extension, non-139,138,130 numbers were introduced. The fifth to seventh digit again relate to age and location.&lt;/P&gt;&lt;P style="margin-top: 0.4em; margin-bottom: 0.5em; line-height: 19px; color: #000000; font-family: sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;Even earlier, before GSM age, mobile phones had numbers starting with 9. Those numbers were eventually translated into 1390xx9..., where xx were local identifiers.&lt;/P&gt;&lt;P style="margin-top: 0.4em; margin-bottom: 0.5em; line-height: 19px; color: #000000; font-family: sans-serif; text-align: -webkit-auto; background-color: #ffffff;"&gt;Mobile service providers can be identified by the first three or four digits as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE class="wikitable" style="margin-top: 1em; margin-right: 1em; margin-bottom: 1em; background-color: #ffffff; color: #000000; font-family: sans-serif; line-height: 19px; text-align: -webkit-auto; border-width: 1px; border-color: #aaaaaa; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="background-color: #f2f2f2; text-align: center; border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;Prefix&lt;/TH&gt;&lt;TH style="background-color: #f2f2f2; text-align: center; border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;Provider&lt;/TH&gt;&lt;TH style="background-color: #f2f2f2; text-align: center; border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;Network&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;130/1/2&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;133&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/CDMA" style="color: #0b0080; background-color: initial;" title="CDMA"&gt;CDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;1340-1348&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;1349&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/ChinaSat" style="color: #0b0080; background-color: initial;" title="ChinaSat"&gt;ChinaSat&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/Satellite" style="color: #0b0080; background-color: initial;" title="Satellite"&gt;Satellite&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;135/6/7/8/9&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;145&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/WCDMA" style="color: #0b0080; background-color: initial;" title="WCDMA"&gt;WCDMA&lt;/A&gt; (Data-plans only)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;147&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/TD-SCDMA" style="color: #0b0080; background-color: initial;" title="TD-SCDMA"&gt;TD-SCDMA&lt;/A&gt; (Data-plans only)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;150&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;151&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;152&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;153&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Telecom" style="color: #0b0080; background-color: initial;" title="China Telecom"&gt;China Telecom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/CDMA" style="color: #0b0080; background-color: initial;" title="CDMA"&gt;CDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;155&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;156&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt; (upgradeable to WCDMA)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;157&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/TD-SCDMA" style="color: #0b0080; background-color: initial;" title="TD-SCDMA"&gt;TD-SCDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;158&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;159&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;180&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Telecom" style="color: #0b0080; background-color: initial;" title="China Telecom"&gt;China Telecom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/CDMA" style="color: #0b0080; background-color: initial;" title="CDMA"&gt;CDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;182&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;185&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/WCDMA" style="color: #0b0080; background-color: initial;" title="WCDMA"&gt;WCDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;186&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Unicom" style="color: #0b0080; background-color: initial;" title="China Unicom"&gt;China Unicom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/WCDMA" style="color: #0b0080; background-color: initial;" title="WCDMA"&gt;WCDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;187&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/GSM" style="color: #0b0080; background-color: initial;" title="GSM"&gt;GSM&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;188&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Mobile" style="color: #0b0080; background-color: initial;" title="China Mobile"&gt;China Mobile&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/TD-SCDMA" style="color: #0b0080; background-color: initial;" title="TD-SCDMA"&gt;TD-SCDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;189&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A href="http://en.wikipedia.org/wiki/China_Telecom" style="color: #0b0080; background-color: initial;" title="China Telecom"&gt;China Telecom&lt;/A&gt;&lt;/TD&gt;&lt;TD style="border-width: 1px; border-color: #aaaaaa; border-style: solid; padding: 0.2em;"&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/CDMA" style="color: #0b0080; background-color: initial;" title="CDMA"&gt;CDMA&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try the following regular expression as a starting point for your work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;prxmatch('/1(?:3\d|4[57]|5[0-35-9]|8[0235-9])\d{8}/o',compress('tel no'n,,'dk'))&amp;gt;0&lt;/P&gt;&lt;P&gt;or prxmatch('/1(?:3\d|4[57]|5[0-35-9]|8[0235-9])\d{8}/o',compress('mobile/pager no'n,,'dk'))&amp;gt;0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 07:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11087#M1201</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-23T07:03:43Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11088#M1202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Dear &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://communities.sas.com/people/FriedEgg" id="jive-73302330469775951329803" onmouseout="" onmouseover=""&gt;FriedEgg&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I'm so appreciated the level you absorbed in, very very thanks.&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="712"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl22" height="20" width="296"&gt;Tel no&lt;/TD&gt;&lt;TD class="xl23" style="border-left: medium none;" width="315"&gt;MP&lt;/TD&gt;&lt;TD class="xl24" style="border-left: medium none;" width="101"&gt;Wanted Output&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;8529634332&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;85298889175&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;　&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;　&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;85298842876&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;　&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;+88028852469/+852-23844511&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;+88-01713015360/+86-13747881289&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;13747881289&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;008529016918&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;13348808380&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;13348808380&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;13916588388&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;13816884388&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;13916588388&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl25" height="19" style="border-top: medium none;"&gt;　&lt;/TD&gt;&lt;TD class="xl26" style="border-top: medium none; border-left: medium none;"&gt;13901293668&lt;/TD&gt;&lt;TD class="xl27" style="border-top: medium none; border-left: medium none;"&gt;13901293668&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl28" height="20" style="border-top: medium none;"&gt;008602162139806&lt;/TD&gt;&lt;TD class="xl29" style="border-top: medium none; border-left: medium none;"&gt;8615821668852&lt;/TD&gt;&lt;TD class="xl30" style="border-top: medium none; border-left: medium none;"&gt;15821668852&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;that's the possible input, and wanted.&lt;/P&gt;&lt;P&gt;I just hesitate whether to put it on because of sensetive data.&lt;/P&gt;&lt;P&gt;now i modify each number.&lt;/P&gt;&lt;P&gt;I am now writing&lt;/P&gt;&lt;P&gt;(case when t1.mpleftcomlen/*the left part of MP field (11 length) then compressed with no *()/-+*/=11 and (SUBSTRn(MPleft/*left part of mp field 11 length*/, 1,3)) in ('133','153','180','189','130','131','132','155','156','185','186','134','135','136','137','138','139','147','150','151','152','157','158','159','182','187','188') then 1 &lt;/P&gt;&lt;P&gt;else 0 end) as mpleftflag.&lt;/P&gt;&lt;P&gt;thank you for your helpful attitude.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 07:50:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11088#M1202</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2012-02-23T07:50:51Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11089#M1203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data foo;&lt;/P&gt;&lt;P&gt; infile cards truncover;&lt;/P&gt;&lt;P&gt; input id (tel mp) (:$31.);&lt;/P&gt;&lt;P&gt; cards;&lt;/P&gt;&lt;P&gt;1 8529634332 85298889175&lt;/P&gt;&lt;P&gt;2 . 85298842876&lt;/P&gt;&lt;P&gt;3 +88028852469/+852-23844511 +88-01713015360/+86-13747881289&lt;/P&gt;&lt;P&gt;4 008529016918 13348808380&lt;/P&gt;&lt;P&gt;5 13916588388 13816884388&lt;/P&gt;&lt;P&gt;6 . 13901293668&lt;/P&gt;&lt;P&gt;7 008602162139806 8615821668852&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data bar;&lt;/P&gt;&lt;P&gt; retain _pid;&lt;/P&gt;&lt;P&gt; if _n_=1 then _pid=prxparse('/1(?:3\d|4[57]|5[0-35-9]|8[0235-9])\d{8}/');&lt;/P&gt;&lt;P&gt; set foo;&lt;/P&gt;&lt;P&gt; _tels=catx('/',of tel mp);&lt;/P&gt;&lt;P&gt; _start=1;&lt;/P&gt;&lt;P&gt; _stop=length(_tels);&lt;/P&gt;&lt;P&gt; call prxnext(_pid,_start,_stop,_tels,_pos,_len);&lt;/P&gt;&lt;P&gt;&amp;nbsp; if _pos=0 then output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do while(_pos&amp;gt;0);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; want=compress(substr(_tels,_pos,_len));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; output;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; call prxnext(_pid,_start,_stop,_tels,_pos,_len);&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt; drop _:;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=bar nodupkey; by id want; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=bar noobs; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P align="center"&gt;&lt;/P&gt;&lt;TABLE cellspacing="0" class="Table"&gt;&lt;THEAD&gt;&lt;TR&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: right;"&gt;id&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: left;"&gt;tel&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: left;"&gt;mp&lt;/TH&gt;&lt;TH class="Header" scope="colgroup" style="vertical-align: middle; text-align: left;"&gt;want&lt;/TH&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;1&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;8529634332&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;85298889175&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;2&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt; &lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;85298842876&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;3&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;+88028852469/+852-23844511&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;+88-01713015360/+86-13747881289&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13747881289&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;4&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;008529016918&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13348808380&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13348808380&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;5&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13916588388&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13816884388&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13816884388&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;5&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13916588388&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13816884388&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13916588388&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;6&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt; &lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13901293668&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;13901293668&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: right;"&gt;7&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;008602162139806&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;8615821668852&lt;/TD&gt;&lt;TD class="Data" nowrap="nowrap" style="text-align: left;"&gt;15821668852&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that there are many cases this will not necessarily work for but given you example data all cases are met.&amp;nbsp; I noticed that you gave an example with two valid mobile phones (id 5) so I wrote the code to return both of these numbers rather than just the one in your example output.&amp;nbsp; This can be changed if you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cases that will be missed are those where the 11 digits you want are separated somehow, such as: &lt;SPAN style="white-space: nowrap;"&gt;133-4880-8380 you can choose to handle this in a few ways but can open yourself up to issues depending on your exact choice.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: nowrap;"&gt;if you choose to compress the characters ()/-+ for example then if you take the numbers from id 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: nowrap; background-color: #eef4f9;"&gt;+88-01713015360/+86-13747881289 will change to -&amp;gt; 88017&lt;STRONG&gt;13015360861&lt;/STRONG&gt;3747881289 and you will find a erronious valid number which I bolded. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: nowrap; background-color: #eef4f9;"&gt;If numbers are always separated by a / when multiple numbers are in a single field not compressing the / character would correct this issue, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="white-space: nowrap; background-color: #eef4f9;"&gt;but as I'm sure you can tell there are plenty of other subtle ways that these types of operations can go wrong.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 17:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11089#M1203</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-23T17:15:19Z</dc:date>
    </item>
    <item>
      <title>How to find out Valid Mobile Phone Number within field value.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11090#M1204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://communities.sas.com/people/FriedEgg" id="jive-73302330535293386167803" onmouseout="" onmouseover=""&gt;FriedEgg&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your answer and paitience. As a newbie I may spending half day digesting the info..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 01:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-find-out-Valid-Mobile-Phone-Number-within-field-value/m-p/11090#M1204</guid>
      <dc:creator>bbb_NG</dc:creator>
      <dc:date>2012-02-24T01:51:38Z</dc:date>
    </item>
  </channel>
</rss>

