<?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>Regular Expression to remove emojis from text input</title><link>https://community.appian.com/discussions/f/general/30037/regular-expression-to-remove-emojis-from-text-input</link><description>We have freeform paragraph field, where user can enter any text string except the emojis. I have tried some of following regexreplaceall function which works fine to remove emojis but it also removes some of the special chars as well. Any suggestion on</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Regular Expression to remove emojis from text input</title><link>https://community.appian.com/thread/119339?ContentTypeID=1</link><pubDate>Sat, 16 Sep 2023 08:16:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef3d13b9-4e74-44f5-a537-bbe02e2c49b3</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Yeah ... if this is only about English, that should work. If you need to support multiple languages, you need to test that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regular Expression to remove emojis from text input</title><link>https://community.appian.com/thread/119316?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 13:25:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:976ab382-a44a-4637-90bc-c59e6b0e1346</guid><dc:creator>Ajay Pandey</dc:creator><description>&lt;p&gt;Thanks for your reply  !&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I got&amp;nbsp;an easy solution using clean() function, that&amp;nbsp;eliminates any chars which are not printable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Regular Expression to remove emojis from text input</title><link>https://community.appian.com/thread/119313?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2023 13:20:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c02cf5dc-31df-4c83-aec2-de7f424fdf30</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;For the regex replacing other characters as well, check this post:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/53383475/replace-all-emojis-from-a-given-unicode-string"&gt;https://stackoverflow.com/questions/53383475/replace-all-emojis-from-a-given-unicode-string&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;My first question: Why do you want to remove emojis? Database issues could be solved by switching to a UTF8MB4 collation.&lt;/p&gt;
&lt;p&gt;Solution: code() returns the integer number of characters. Then you can remove/replace the required ranges and turn it back into a string using char().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>