<?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: Fuzzy Logic match with multi word value in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667072#M9793</link>
    <description>&lt;P&gt;I was just about to come on here and post that I figured it out, but what I was doing isn't as elegant as what you did.&lt;BR /&gt;&lt;BR /&gt;I did&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makemv CompanyName
| rex field=CompanyName "(?&amp;lt;CamelCase&amp;gt;\b(\w))"
| eval CamelCase=mvjoin(CamelCase,"")
| nomv CompanyName
| eval DomainMatchesCompany=case(like(lower(CompanyName),"%".substr(lower(domain_root),1,3)."%"),"Yes",
like(lower(CamelCase),"%".substr(lower(domain_root),1,3)."%"),"Yes", 1=1,"No")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I will try your Approach and see if I get something similar&lt;/P&gt;</description>
    <pubDate>Wed, 01 Nov 2023 23:09:01 GMT</pubDate>
    <dc:creator>mjones414</dc:creator>
    <dc:date>2023-11-01T23:09:01Z</dc:date>
    <item>
      <title>Fuzzy Logic match with multi word value</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667058#M9791</link>
      <description>&lt;P&gt;I have a situation where I'm using case to compare 2 fields to identify a fuzzy match, but in field 1 I may have "boa.com" and in field 2 I have "Bank Of America"&amp;nbsp; what I want to do is to take the letters of field 1 and the first letter of each word in field 2 (understanding there is no potential maximum number of words the value may contain).&amp;nbsp; I know I can usually do something with mvindex by using an index field of -1 to identify the "last value" of a multi value field, but I'm not sure how to try to marry that with case(like and substr().&amp;nbsp; Has anyone ever accomplished anything like this before?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying things like&amp;nbsp;| rex field=Company "(?&amp;lt;CamelCase&amp;gt;\b(\w))" but its only returning "b" in CamelCase instead of "boa"&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 21:58:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667058#M9791</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2023-11-01T21:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzzy Logic match with multi word value</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667071#M9792</link>
      <description>&lt;P&gt;Similar to this &lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-capture-the-substring-of-a-dynamic-multivalued-field/m-p/666831#M228747" target="_self"&gt;response&lt;/A&gt;, try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=field2 "(?&amp;lt;initial&amp;gt;[a-zA-Z])[a-zA-Z]* ?"
| eval webdomain=lower(mvjoin(initial,"")).".com"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 23:00:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667071#M9792</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-11-01T23:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzzy Logic match with multi word value</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667072#M9793</link>
      <description>&lt;P&gt;I was just about to come on here and post that I figured it out, but what I was doing isn't as elegant as what you did.&lt;BR /&gt;&lt;BR /&gt;I did&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makemv CompanyName
| rex field=CompanyName "(?&amp;lt;CamelCase&amp;gt;\b(\w))"
| eval CamelCase=mvjoin(CamelCase,"")
| nomv CompanyName
| eval DomainMatchesCompany=case(like(lower(CompanyName),"%".substr(lower(domain_root),1,3)."%"),"Yes",
like(lower(CamelCase),"%".substr(lower(domain_root),1,3)."%"),"Yes", 1=1,"No")&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I will try your Approach and see if I get something similar&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 23:09:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667072#M9793</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2023-11-01T23:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Fuzzy Logic match with multi word value</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667073#M9794</link>
      <description>&lt;P&gt;So as it turns out with regard to my data, word boundaries and \w work great but since the string values actually do&amp;nbsp; contain whitespace, I have to convert it to multivalue to get the desired outcome.&amp;nbsp; if I do the pre-processing steps, both of our regular expressions seem to get the job done &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Thanks so much for your reply!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2023 23:20:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Fuzzy-Logic-match-with-multi-word-value/m-p/667073#M9794</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2023-11-01T23:20:28Z</dc:date>
    </item>
  </channel>
</rss>

