<?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: Please implement REGEXP_REPLACE in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817281#M4848124</link>
    <description>&lt;P&gt;I should add that this similar topic was discussed as part of &lt;A href="https://sqlanywhere-forum.sap.com/questions/14958/how-do-we-do-formatting-of-decimals-as-currency-strings-in-sql"&gt;this question here&lt;/A&gt;, and was noted as part of the formatting enhancement opportunities in CR #728186.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2013 09:58:49 GMT</pubDate>
    <dc:creator>jeff_albion</dc:creator>
    <dc:date>2013-01-25T09:58:49Z</dc:date>
    <item>
      <title>Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaq-p/13817275</link>
      <description>&lt;P&gt;When i need to validate user input in fields it is often necessary to make sure only a limited set of characters is used. &lt;/P&gt;

&lt;P&gt;Example could be European VAT Numbers, Phone, Container ID Code ...&lt;/P&gt;

&lt;P&gt;The current REGEXP_SUBSTR Function is not able to match several accurencase of a given pattern in one go. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Syntax&lt;/STRONG&gt;&lt;/P&gt;

&lt;LI-CODE lang="sql"&gt;REGEXP_REPLACE( expression, regular-expression 
[, start-offset [ , occurrence-number [, escape-expression
[, regex-parameter ] ] ] ] )
&lt;/LI-CODE&gt;

&lt;P&gt;&lt;STRONG&gt;Parameters&lt;/STRONG&gt;&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Like REGEXP_SUBSTR&lt;/LI&gt;
&lt;LI&gt;regexp-paramter g Global search; i Case Insensitive; ....&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;&lt;STRONG&gt;Samples :&lt;/STRONG&gt;&lt;/P&gt;

&lt;LI-CODE lang="sql"&gt;// In JScript they use a RegEx Parameter **g** to use the RegEx globaly against the
// searchstring 
regexp_replace( "0049-282 8/182", "[^0-9]", "") --&amp;gt; "00492828182"

// With grouped tagged expression to use in replacement string
regexp_replace( "0049 282 8182", "^00(\\S*) (\\S*) (.*)", "+$1 \\($2) $3") --&amp;gt; "+49 (282) 8182"
&lt;/LI-CODE&gt;

&lt;P&gt;Oracle also has a implementation of it &lt;A href="http://download.oracle.com/docs/cd/B19306%5F01/server.102/b14200/functions130.htm#SQLRF06302" rel="nofollow" target="_blank"&gt;http://download.oracle.com/docs/...&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;See this &lt;A href="http://sqlanywhere-forum.sap.com/questions/309/how-to-strip-several-different-characters-from-a-string" rel="nofollow" target="_blank"&gt;Question&lt;/A&gt; to see more reasons to implement REGEXP_REPLACE&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 12:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaq-p/13817275</guid>
      <dc:creator>thomas_duemesnil</dc:creator>
      <dc:date>2010-01-26T12:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817276#M4848119</link>
      <description>&lt;P&gt;This is another one of those features that we have discussed within the engineering team on several occassions.  I too have had many times that I've wanted to do be able to find a pattern within a string and replace it with a different one.  But alas, regular expressions are complicated not only to understand and use but to implement and perform well.  As such, this feature is already on the list of possible enhancements to be put into a future release.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 12:45:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817276#M4848119</guid>
      <dc:creator>MarkCulp</dc:creator>
      <dc:date>2010-01-26T12:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817277#M4848120</link>
      <description>&lt;P&gt;I second this proposal for similar reasons.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2010 13:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817277#M4848120</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2010-01-26T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817278#M4848121</link>
      <description>&lt;P&gt;I agree Mark!  Regular expressions are complicated.   It's my humble opinion that the purpose of any computer code, wether it be SQL, Java, PHP, Powerbuilder, or any other language, is for HUMANS to read and manage -- not computing systems... it's the systems' job to translate that code into something that they can deal with.   While I fully appreciate the power of regex, I hate everything about it... precisely because it's incomprensible for many of us mortals.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 21:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817278#M4848121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-27T21:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817279#M4848122</link>
      <description>&lt;P&gt;Obligatory xkcd reference: &lt;A href="http://xkcd.com/208/"&gt;http://xkcd.com/208/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2011 23:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817279#M4848122</guid>
      <dc:creator>graeme_perrow</dc:creator>
      <dc:date>2011-04-27T23:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817280#M4848123</link>
      <description>&lt;P&gt;...and don't forget to look at the tool tip:)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2011 03:27:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817280#M4848123</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2011-04-28T03:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please implement REGEXP_REPLACE</title>
      <link>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817281#M4848124</link>
      <description>&lt;P&gt;I should add that this similar topic was discussed as part of &lt;A href="https://sqlanywhere-forum.sap.com/questions/14958/how-do-we-do-formatting-of-decimals-as-currency-strings-in-sql"&gt;this question here&lt;/A&gt;, and was noted as part of the formatting enhancement opportunities in CR #728186.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2013 09:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/please-implement-regexp-replace/qaa-p/13817281#M4848124</guid>
      <dc:creator>jeff_albion</dc:creator>
      <dc:date>2013-01-25T09:58:49Z</dc:date>
    </item>
  </channel>
</rss>

