<?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>question Re: How to check 'contains' for exact word, not part of  word in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237372#M85365</link>
    <description>&lt;P&gt;Thank you, its working with ${anyDelineatedValue("${your_attribute}", ","):equals("US")}&lt;/P&gt;</description>
    <pubDate>Wed, 05 Dec 2018 19:34:23 GMT</pubDate>
    <dc:creator>hegdemahendra</dc:creator>
    <dc:date>2018-12-05T19:34:23Z</dc:date>
    <item>
      <title>How to check 'contains' for exact word, not part of  word</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237370#M85363</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a scenario where I need to check for string contains, but for exact match of comma separated words.&lt;/P&gt;&lt;P&gt;Example String:  &lt;/P&gt;&lt;P&gt;example = "&lt;STRONG&gt;US,UK,IN,NOT_APPLICABLE&lt;/STRONG&gt;"&lt;/P&gt;&lt;P&gt;I want to check above string contains specific word like '&lt;STRONG&gt;US&lt;/STRONG&gt;' or '&lt;STRONG&gt;LE&lt;/STRONG&gt;'&lt;/P&gt;&lt;P&gt;Case 1: &lt;/P&gt;&lt;P&gt;example.contains('US') .  - expecting TRUE&lt;/P&gt;&lt;P&gt;Case 2:&lt;/P&gt;&lt;P&gt;example.contains('LE')  - expecting FALSE&lt;/P&gt;&lt;P&gt;If I use normal :contains(), case 2 will also return TRUE since '&lt;STRONG&gt;LE&lt;/STRONG&gt;' is part of 'NOT_APPLICAB&lt;B&gt;LE&lt;/B&gt;'&lt;/P&gt;&lt;P&gt;But I want to check contains for comma separated values strictly.&lt;/P&gt;&lt;P&gt;Is there any easy way to achieve this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahendra&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 18:24:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237370#M85363</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2018-12-05T18:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to check 'contains' for exact word, not part of  word</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237371#M85364</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48523/hegdemahendra.html" nodeid="48523"&gt;@Mahendra Hegde&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the function anyDelineatedValue.&lt;/P&gt;&lt;P&gt;${anyDelineatedValue("${your_attribute}", ","):contains("US")}&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 18:40:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237371#M85364</guid>
      <dc:creator>sohil2027</dc:creator>
      <dc:date>2018-12-05T18:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to check 'contains' for exact word, not part of  word</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237372#M85365</link>
      <description>&lt;P&gt;Thank you, its working with ${anyDelineatedValue("${your_attribute}", ","):equals("US")}&lt;/P&gt;</description>
      <pubDate>Wed, 05 Dec 2018 19:34:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-check-contains-for-exact-word-not-part-of-word/m-p/237372#M85365</guid>
      <dc:creator>hegdemahendra</dc:creator>
      <dc:date>2018-12-05T19:34:23Z</dc:date>
    </item>
  </channel>
</rss>

