James, Hi. It's late here now but I will look into this tomorrow. In my experience Regex can be a bit of a black art at times but once you get the hang of it you come to see how useful and powerful it can be.
Regards, Narinder Chandi, ToolBox Systems Ltd. -- -----Original Message----- From: 4D_Tech <4d_tech-boun...@lists.4d.com> on behalf of 4D Tech Mailing List <4d_tech@lists.4d.com> Reply-To: 4D Tech Mailing List <4d_tech@lists.4d.com> Date: Wednesday, 12 June 2019 at 22:52 To: 4D Tech Mailing List <4d_tech@lists.4d.com> Cc: macjimbo <macji...@mac.com> Subject: Re: Emojis in text Thanks for your help with this Narinder I'm still struggling, mostly because I don't know how to use Regex properly. None of the regex patterns I can find online for removing emojis seem to work at all. I would be quite happy just to restrict the text to alphanumeric and the kind of special characters I would find on an English keyboard, as we're not likely to receive feedback in other languages. Can anyone help me with a) how to use a regex pattern either to omit emojis or only include alpanumeric + english special characters. Essentially the ASCII character set; b) how to use regex to build a string which only includes the characters I want. I've downloaded the Regex plugin from Pluggers and think this code should work - if I can find the right pattern: ARRAY TEXT($textarray;0) Preg Match All ($pattern;$original;$textarray) $cleaned:="" For ($i;1;Size of array($textarray) $cleaned:=$cleaned +$textarray{$i} end for This seems more complicated than it should be, so would be grateful for any help. Thanks! James -- Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com ********************************************************************** ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************