<?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>topic Re: is there a trick to testing a text field for characters like * &amp;amp; @ in Workato Pros Discussion Board</title>
    <link>https://systematic.workato.com/t5/workato-pros-discussion-board/is-there-a-trick-to-testing-a-text-field-for-characters-like-amp/m-p/7544#M3215</link>
    <description>&lt;P&gt;You can do this with match or scan, and regex (regular expressions).&lt;/P&gt;&lt;P&gt;Regex is a little complicated to learn IMO, but it is an essential tool for problems like this.&lt;/P&gt;&lt;P&gt;Here is a quick formula that will test for any characters that are not a-z, A-Z, and 0-9. It will return true or false based on the input.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;input = "abc@123*"
[input].match?(/[^a-zA-Z\d]/)
## output &amp;gt;&amp;gt; true&lt;/LI-CODE&gt;&lt;P&gt;You can also use scan to return an array of non-matching characters:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[input].scan(/[^a-zA-Z\d]/)
## output &amp;gt;&amp;gt; ["@", "*"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Sep 2024 16:28:52 GMT</pubDate>
    <dc:creator>gary1</dc:creator>
    <dc:date>2024-09-09T16:28:52Z</dc:date>
    <item>
      <title>is there a trick to testing a text field for characters like * &amp; @</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/is-there-a-trick-to-testing-a-text-field-for-characters-like-amp/m-p/7465#M3201</link>
      <description>&lt;P&gt;our ERP will allow a user to enter a serial number like 1234*&lt;/P&gt;&lt;P&gt;is there a way to test of an * or &amp;amp; or&amp;nbsp;@ etc is in a text field so i can send an email to a user to fix rather than move the incorrect data to SFDC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 20:28:55 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/is-there-a-trick-to-testing-a-text-field-for-characters-like-amp/m-p/7465#M3201</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2024-09-04T20:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: is there a trick to testing a text field for characters like * &amp; @</title>
      <link>https://systematic.workato.com/t5/workato-pros-discussion-board/is-there-a-trick-to-testing-a-text-field-for-characters-like-amp/m-p/7544#M3215</link>
      <description>&lt;P&gt;You can do this with match or scan, and regex (regular expressions).&lt;/P&gt;&lt;P&gt;Regex is a little complicated to learn IMO, but it is an essential tool for problems like this.&lt;/P&gt;&lt;P&gt;Here is a quick formula that will test for any characters that are not a-z, A-Z, and 0-9. It will return true or false based on the input.&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;input = "abc@123*"
[input].match?(/[^a-zA-Z\d]/)
## output &amp;gt;&amp;gt; true&lt;/LI-CODE&gt;&lt;P&gt;You can also use scan to return an array of non-matching characters:&lt;/P&gt;&lt;LI-CODE lang="ruby"&gt;[input].scan(/[^a-zA-Z\d]/)
## output &amp;gt;&amp;gt; ["@", "*"]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Sep 2024 16:28:52 GMT</pubDate>
      <guid>https://systematic.workato.com/t5/workato-pros-discussion-board/is-there-a-trick-to-testing-a-text-field-for-characters-like-amp/m-p/7544#M3215</guid>
      <dc:creator>gary1</dc:creator>
      <dc:date>2024-09-09T16:28:52Z</dc:date>
    </item>
  </channel>
</rss>

