<?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>Question Re: UK postcode Rule in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782142#M4413907</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kumarr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the acceptable formats of a UK post code are.&amp;nbsp; However, you may want to look at the REGEX rather than match pattern rule.&amp;nbsp; With that you can specify numbers and if appropriate letters of allowable characters and length of the post code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jul 2016 23:08:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-07-14T23:08:59Z</dc:date>
    <item>
      <title>UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaq-p/11782141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I tried to write a a rule for UK postcode validation by using Match Pattern .when I test it giving right answers.&lt;/P&gt;&lt;P&gt;but this match pattern passing just first half postcode (AA9)&amp;nbsp; also pass.&lt;/P&gt;&lt;P&gt;when I bind it to the postcode column it passing all the patterns except Just Numbers(12345,123456,7896-----fail) in that field.&lt;/P&gt;&lt;P&gt;it gives score 9.99.&lt;/P&gt;&lt;P&gt;Did anyone came across this problem,&lt;/P&gt;&lt;P&gt;please help me out or please can anyone share if they wrote the rule for this already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kumarr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 22:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaq-p/11782141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-11T22:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782142#M4413907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kumarr,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what the acceptable formats of a UK post code are.&amp;nbsp; However, you may want to look at the REGEX rather than match pattern rule.&amp;nbsp; With that you can specify numbers and if appropriate letters of allowable characters and length of the post code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 23:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782142#M4413907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-14T23:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782143#M4413908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian Storen,&lt;/P&gt;&lt;P&gt;Thanks for a response.&lt;/P&gt;&lt;P&gt;Here is the UK standard postcode patterns &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X9 9XX&amp;nbsp; &lt;/P&gt;&lt;P&gt;X99 9XX &lt;/P&gt;&lt;P&gt;XX9 9XX &lt;/P&gt;&lt;P&gt;XX99 9XX &lt;/P&gt;&lt;P&gt;X9X 9XX&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;XX9X 9XX. &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i tried using Match pattern ,I tried with &lt;/SPAN&gt;reg exp&lt;SPAN style="font-size: 10pt;"&gt; also but results are coming in &lt;/SPAN&gt;same&lt;SPAN style="font-size: 10pt;"&gt; way.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kumarrr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782143#M4413908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-15T04:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782144#M4413909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assume by '9' you mean any number rather than always a 9.&amp;nbsp; Did you try multiple regex statements with OR statements?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match_regex($post_code, '[A-Z]{1}[0-9]{1}\s[0-9]{1}[A-Z]{2}', NULL) OR&lt;/P&gt;&lt;P&gt;match_regex($post_code, '[A-Z]{1}[0-9]{2}\s[0-9]{1}[A-Z]{2}', NULL) OR&lt;/P&gt;&lt;P&gt;match_regex($post_code, '[A-Z]{2}[0-9]{1}\s[0-9]{1}[A-Z]{2}', NULL) OR ... etc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:42:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782144#M4413909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-15T04:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782145#M4413910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://stackoverflow.com/questions/164979/uk-postcode-regex-comprehensive"&gt;http://stackoverflow.com/questions/164979/uk-postcode-regex-comprehensive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has a reference to the UK Government Standard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2016 04:46:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782145#M4413910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-15T04:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782146#M4413911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Adrian Thanks for the good suggestion with example.I tried the same with regular expression.&lt;/P&gt;&lt;P&gt;showing sample&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(match_regex($POSTCODE, '[A-Z][0-9]{2} [0-9]{1}[A-Z]{2}', NULL)&lt;/P&gt;&lt;P&gt;match_regex($POSTCODE, '[A-Z]{2}[0-9] [0-9]{1}[A-Z]{2}', NULL)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;match_regex($POSTCODE, '[A-Z][0-9][A-Z] [0-9]{1}[A-Z]{2}', NULL))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And&amp;nbsp; Thanks for the link also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jul 2016 04:24:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782146#M4413911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-17T04:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: UK postcode Rule</title>
      <link>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782147#M4413912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;BEGIN &lt;/P&gt;&lt;P&gt;IF( &lt;/P&gt;&lt;P&gt;( match_pattern($Name, '&lt;SPAN style="color: #333333; font-size: 12px;"&gt;X9 9XX&lt;/SPAN&gt;')) OR &lt;/P&gt;&lt;P&gt;( match_pattern($Name, '&lt;SPAN style="color: #333333; font-size: 12px;"&gt;X99 9XX&lt;/SPAN&gt;')) OR &lt;/P&gt;&lt;P&gt;( match_pattern($Name, '&lt;SPAN style="color: #333333; font-size: 12px;"&gt;XX9 9XX&lt;/SPAN&gt;')) OR&lt;/P&gt;&lt;P&gt;.............&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;Return True;&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;Return False;&lt;/P&gt;&lt;P&gt;END&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System takes any characters in place of X and any number in place of 9.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2016 13:07:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/uk-postcode-rule/qaa-p/11782147#M4413912</guid>
      <dc:creator>former_member655569</dc:creator>
      <dc:date>2016-07-20T13:07:35Z</dc:date>
    </item>
  </channel>
</rss>

