<?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 Eval in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Eval/m-p/553622#M91787</link>
    <description>&lt;P&gt;c= US&lt;/P&gt;&lt;P&gt;Language = abcdENGLISH123qw&lt;/P&gt;&lt;P&gt;..... | rex fields=Language "\w{4}(?&amp;lt;myval&amp;gt;)\d{4}"&lt;/P&gt;&lt;P&gt;| eval ans=case(c="US",myval, true(), "NA" ) | table ans, myval, c&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;ans = NA&lt;/P&gt;&lt;P&gt;myval = English&lt;/P&gt;&lt;P&gt;c = US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the ans = English&lt;/P&gt;</description>
    <pubDate>Sat, 29 May 2021 13:14:30 GMT</pubDate>
    <dc:creator>Khuzair81</dc:creator>
    <dc:date>2021-05-29T13:14:30Z</dc:date>
    <item>
      <title>Eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Eval/m-p/553622#M91787</link>
      <description>&lt;P&gt;c= US&lt;/P&gt;&lt;P&gt;Language = abcdENGLISH123qw&lt;/P&gt;&lt;P&gt;..... | rex fields=Language "\w{4}(?&amp;lt;myval&amp;gt;)\d{4}"&lt;/P&gt;&lt;P&gt;| eval ans=case(c="US",myval, true(), "NA" ) | table ans, myval, c&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;ans = NA&lt;/P&gt;&lt;P&gt;myval = English&lt;/P&gt;&lt;P&gt;c = US&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the ans = English&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 13:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Eval/m-p/553622#M91787</guid>
      <dc:creator>Khuzair81</dc:creator>
      <dc:date>2021-05-29T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Eval</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Eval/m-p/553623#M91788</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225651"&gt;@Khuzair81&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;YOUR_SEARCH
| rex field=Language "^[a-zA-z]{4}(?&amp;lt;myval&amp;gt;\w+)\d{3}" 
| eval ans=case(c="US",myval, true(), "NA" ) 
| table ans, myval, c&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Sample Search :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval c="US",Language="abcdENGLISH123qw" 
| rex field=Language "^[a-zA-z]{4}(?&amp;lt;myval&amp;gt;\w+)\d{3}" 
| eval ans=case(c="US",myval, true(), "NA" ) 
| table ans, myval, c&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;BR /&gt;KV&lt;BR /&gt;▄︻̷̿┻̿═━一&lt;BR /&gt;&lt;BR /&gt;If any of my reply helps you to solve the problem Or gain knowledge, an upvote would be appreciated.&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 14:48:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Eval/m-p/553623#M91788</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-05-29T14:48:08Z</dc:date>
    </item>
  </channel>
</rss>

