<?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>How to remove unwanted characters from text ?</title><link>https://community.appian.com/discussions/f/general/38070/how-to-remove-unwanted-characters-from-text</link><description>Hi , 
 How to remove unwanted characters from text ? 
 I get data from excel where its having char(9), char(160) sometimes different char(x) which none can expect 
 example: \tHello ( In Appian value : fn!char(9)Hello ) 
 I want only Hello from the value</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to remove unwanted characters from text ?</title><link>https://community.appian.com/thread/143249?ContentTypeID=1</link><pubDate>Sun, 01 Dec 2024 16:12:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1f71a4ec-fb7c-43df-b780-a24919ebf6f9</guid><dc:creator>saimohancharugundla</dc:creator><description>&lt;p&gt;Thanks Stefan,&lt;/p&gt;
&lt;p&gt;I have added few more conditions to work for my use case ( containing special chars).&lt;/p&gt;
&lt;p&gt;It&amp;#39;s working as expected&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove unwanted characters from text ?</title><link>https://community.appian.com/thread/143239?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 13:00:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:19d6ecb6-e33f-41a3-a1aa-9bb24d9f2634</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In the following code snippet, I just define the allowed characters. Everything else is removed.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cleanwith(
  char(9) &amp;amp; &amp;quot;Hello Worldchar&amp;quot; &amp;amp; (160),
  concat(
    char(enumerate(24) + 65), /* A-Z */
    char(enumerate(24) + 97), /* a-z */
    &amp;quot; &amp;quot;
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove unwanted characters from text ?</title><link>https://community.appian.com/thread/143238?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 12:48:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2fcdbbd-f92f-42a3-a9dc-5bfed2f3b1b5</guid><dc:creator>saimohancharugundla</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I have explored these functions and felt this wont help in my use case.&lt;br /&gt;&lt;br /&gt;my use case is:&lt;/p&gt;
&lt;p&gt;User might give tabspace or space or multiples of it along with value in the excel column which is inappropriate . I need to read the excel, get value and check the value is in my list of values. For doing this, value is coming with char(9)VALUE or char(160)VALUE etc which I cannot expect what characters the VALUE would come with.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;example&lt;/p&gt;
&lt;p&gt;use case 1:&lt;/p&gt;
&lt;p&gt;List of values I have in my hand: {&amp;quot;Hello World&amp;quot;, &amp;quot;Good Morning&amp;quot;}&lt;/p&gt;
&lt;p&gt;Value I&amp;#39;m expecting from excel :&amp;nbsp; Hello World&lt;/p&gt;
&lt;p&gt;Excel value I received: char(9)Hello Worldchar(160)&lt;/p&gt;
&lt;p&gt;Now I need to fetch Hello World from the excel value and check if its present in my list.&lt;br /&gt; If I use stripwith(value, char(160)), next time excel value might come with char(10) which I would never know.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to remove unwanted characters from text ?</title><link>https://community.appian.com/thread/143234?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2024 11:47:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a2cf4082-1e7d-4dd4-925f-fd888b281fd9</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try the function cleanwith()? In opposite to stripwith(), you define the characters to keep.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.4/fnc_text_cleanwith.html"&gt;https://docs.appian.com/suite/help/24.4/fnc_text_cleanwith.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>