<?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: How do I remove special characters from a string without using regular expressions ( SQLA 9) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829972#M4860815</link>
    <description>&lt;P&gt;Reimer, a similar question can be found &lt;A href="http://sqlanywhere-forum.sap.com/questions/309" rel="nofollow"&gt;here&lt;/A&gt; (more in the question than in answers), as an example of using several nested REPLACE() calls, like Thomas has suggested.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2010 19:31:03 GMT</pubDate>
    <dc:creator>VolkerBarth</dc:creator>
    <dc:date>2010-10-25T19:31:03Z</dc:date>
    <item>
      <title>How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaq-p/13829970</link>
      <description>&lt;P&gt;When importing data I need to remove a set of characters from a string to allow comparison with a column. The database is 9.0.2, so regular expressions are not available (at least to my knowledge).  &lt;/P&gt;

&lt;P&gt;Example: 
String is 'A.628.164-09/11'&lt;BR /&gt;
Remove all occurrences of '.,;-/'&lt;BR /&gt;
Result 'A6281640911'&lt;/P&gt;

&lt;P&gt;My first approach was to loop over all characters of the original string, using CHARINDEX to determine if it is to be skipped. &lt;/P&gt;

&lt;P&gt;But I wonder, if there's a better solution. Any ideas?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2010 14:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaq-p/13829970</guid>
      <dc:creator>reimer_pods</dc:creator>
      <dc:date>2010-10-25T14:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829971#M4860814</link>
      <description>&lt;P&gt;What about the replace() function ? If you have only a small number of characters to remove you can use a few hard coded calls which should be faster as a loop.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2010 15:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829971#M4860814</guid>
      <dc:creator>thomas_duemesnil</dc:creator>
      <dc:date>2010-10-25T15:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829973#M4860816</link>
      <description>&lt;P&gt;That's the way I would do this, too, when there are not too many characters - usually as a chain of REPLACE() calls. And for performance reasons, I would think about using a LIKE '%[..]%' comparison beforehand to find out if any unwanted character exists in the string.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2010 19:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829973#M4860816</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2010-10-25T19:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829972#M4860815</link>
      <description>&lt;P&gt;Reimer, a similar question can be found &lt;A href="http://sqlanywhere-forum.sap.com/questions/309" rel="nofollow"&gt;here&lt;/A&gt; (more in the question than in answers), as an example of using several nested REPLACE() calls, like Thomas has suggested.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2010 19:31:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829972#M4860815</guid>
      <dc:creator>VolkerBarth</dc:creator>
      <dc:date>2010-10-25T19:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829974#M4860817</link>
      <description>&lt;P&gt;I've used nested REPLACE-calls in some cases. For this one the string with chars to cut out should be a configurable string. So some kind of loop seems unavoidable to me. But I could try looping over the string with skip-chars calling REPLACE for each single-char substring and measure, which version well be faster with the customers data.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2010 15:34:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829974#M4860817</guid>
      <dc:creator>reimer_pods</dc:creator>
      <dc:date>2010-10-26T15:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829975#M4860818</link>
      <description>&lt;P&gt;Thank you both for your proposal. See my comment on Volkers's answer.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2010 15:35:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829975#M4860818</guid>
      <dc:creator>reimer_pods</dc:creator>
      <dc:date>2010-10-26T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove special characters from a string without using regular expressions ( SQLA 9)</title>
      <link>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829976#M4860819</link>
      <description>&lt;P&gt;Perhaps you can post your results.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Oct 2010 10:31:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/how-do-i-remove-special-characters-from-a-string-without-using-regular/qaa-p/13829976#M4860819</guid>
      <dc:creator>thomas_duemesnil</dc:creator>
      <dc:date>2010-10-27T10:31:23Z</dc:date>
    </item>
  </channel>
</rss>

