<?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>Hello,  I&amp;#39;m trying to write an expression function that replaces 2</title><link>https://community.appian.com/discussions/f/rules/1013/hello-i-m-trying-to-write-an-expression-function-that-replaces-2</link><description>Hello, I&amp;#39;m trying to write an expression function that replaces 26 different special characters with their encoded equivalents, but in attempting to use a series of nested substitute() functions to do this, I&amp;#39;m get a stack overflow error within the expression</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm trying to write an expression function that replaces 2</title><link>https://community.appian.com/thread/3415?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2013 21:40:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18b67355-1e01-4863-8eda-02c06944d560</guid><dc:creator>Jorge Sanchez</dc:creator><description>You may also want to consider deploying the Regex expression plugin, as it will achieve the same with a simple regex expression without the use of looping functions.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm trying to write an expression function that replaces 2</title><link>https://community.appian.com/thread/3403?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 19:04:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfe333ba-b576-4ed3-92a9-f46acb4edc9f</guid><dc:creator>shelzle</dc:creator><description>You are welcome :-)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm trying to write an expression function that replaces 2</title><link>https://community.appian.com/thread/3402?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 19:03:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:901513a5-9d41-4939-9185-36365189747e</guid><dc:creator>dylanf</dc:creator><description>Thanks very much. I used the reduce() function as described above and this seems to work.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm trying to write an expression function that replaces 2</title><link>https://community.appian.com/thread/3401?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 16:59:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a6f5c350-41bf-4f23-b490-1d5071b91094</guid><dc:creator>shelzle</dc:creator><description>I tried this&lt;br /&gt;&lt;br /&gt;=reduce(fn!substitute, &amp;quot;at best coffee&amp;quot;, merge({&amp;quot;a&amp;quot;, &amp;quot;b&amp;quot;, &amp;quot;c&amp;quot;}, {&amp;quot;a#&amp;quot;, &amp;quot;b#&amp;quot;, &amp;quot;c#&amp;quot;}))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Hello,&lt;br /&gt;&lt;br /&gt;I'm trying to write an expression function that replaces 2</title><link>https://community.appian.com/thread/3400?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2013 16:56:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba4cf98c-93a9-4d52-b135-fec76c3987a6</guid><dc:creator>moritzw</dc:creator><description>You could try this using looping functions. Somthing like apply(fn!substitute,merge(replaceMe,replaceWith)) could work....&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>