<?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 Need help on rex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534472#M151036</link>
    <description>&lt;P&gt;wed } } }, { "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00" open "S" : "12:00" } } } } }, "email" : { "S" : " DHours" } } }, "email" : { "S" : " Hours" } } }]&lt;/P&gt;&lt;P&gt;| rex "wed.\D}.\D.\D.(?&amp;lt;sample&amp;gt;.*)DHours&lt;/P&gt;&lt;P&gt;i used above rex and gives the result like&lt;/P&gt;&lt;P&gt;{ "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00"open "S" : "12:00" } } } } }, "email" : { "S" : "&lt;/P&gt;&lt;P&gt;but i need below output&lt;/P&gt;&lt;P&gt;Result should be like&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00"open "S" : "12:00" } } } } }&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 12:36:11 GMT</pubDate>
    <dc:creator>Annna</dc:creator>
    <dc:date>2020-12-30T12:36:11Z</dc:date>
    <item>
      <title>Need help on rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534472#M151036</link>
      <description>&lt;P&gt;wed } } }, { "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00" open "S" : "12:00" } } } } }, "email" : { "S" : " DHours" } } }, "email" : { "S" : " Hours" } } }]&lt;/P&gt;&lt;P&gt;| rex "wed.\D}.\D.\D.(?&amp;lt;sample&amp;gt;.*)DHours&lt;/P&gt;&lt;P&gt;i used above rex and gives the result like&lt;/P&gt;&lt;P&gt;{ "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00"open "S" : "12:00" } } } } }, "email" : { "S" : "&lt;/P&gt;&lt;P&gt;but i need below output&lt;/P&gt;&lt;P&gt;Result should be like&amp;nbsp;&lt;/P&gt;&lt;P&gt;{ "S" : "12:00" } } }, "day" M" : { "close" : { "S" : "23:00"open "S" : "12:00" } } } } }&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:36:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534472#M151036</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2020-12-30T12:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534473#M151037</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227309"&gt;@Annna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the results you have from your regex is the correct one for your regex, please try this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "wed.\D}.\D.\D.(?&amp;lt;sample&amp;gt;.*),\s+\"email\".*DHours"&lt;/LI-CODE&gt;&lt;P&gt;that you can test at&amp;nbsp;&amp;nbsp;&lt;A href="https://regex101.com/r/CutdeR/1" target="_blank"&gt;https://regex101.com/r/CutdeR/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:45:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534473#M151037</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-30T12:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534474#M151038</link>
      <description>&lt;P&gt;its working. Thank you..!!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:47:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534474#M151038</guid>
      <dc:creator>Annna</dc:creator>
      <dc:date>2020-12-30T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Need help on rex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534475#M151039</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227309"&gt;@Annna&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you.&lt;/P&gt;&lt;P&gt;Ciao and happy splunking.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S. Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:03:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Need-help-on-rex/m-p/534475#M151039</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-12-30T13:03:31Z</dc:date>
    </item>
  </channel>
</rss>

