<?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: How to write a Regex to search globally? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598110#M208279</link>
    <description>&lt;P&gt;Try like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults
| eval _raw="[{\"\"feature\"\": \"\"INTDATA\"\"},
{\"\"feature\"\": \"\"INTDATA2\"\"},
{\"\"feature\"\": \"\"MGDAT0\"\"},
{\"\"feature\"\": \"\"MGPR2TI\"\"},
{\"\"feature\"\": \"\"MSTORE\"\"},
{\"\"feature\"\": \"\"PNINCLWAP\"\"},
{\"\"feature\"\": \"\"PRMCAFIND\"\"},
{\"\"feature\"\": \"\"3WY\"\"},
{\"\"feature\"\": \"\"CFC\"\"},
{\"\"feature\"\": \"\"CFU\"\"},
{\"\"feature\"\": \"\"CLIP\"\"},
{\"\"feature\"\": \"\"CLIR\"\"},
{\"\"feature\"\": \"\"CLW\"\"},
{\"\"feature\"\": \"\"DATA\"\"},
{\"\"feature\"\": \"\"CAMTAC\"\"},
{\"\"feature\"\": \"\"HOLD\"\"},
{\"\"feature\"\": \"\"INROAM\"\"},
{\"\"feature\"\": \"\"ISP\"\"},
{\"\"feature\"\": \"\"MSTORE\"\"},
{\"\"feature\"\": \"\"NWROAM\"\"},
{\"\"feature\"\": \"\"PERMGL\"\"},
{\"\"feature\"\": \"\"SMSO\"\"},
{\"\"feature\"\": \"\"VM\"\"},
{\"\"feature\"\": \"\"GFLEX\"\"}]"
|rex max_match=0 "\"\"feature\"\": \"\"(?&amp;lt;feature&amp;gt;.*?)\"\"}"| mvexpand feature
|stats count(feature) by feature&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 17 May 2022 15:26:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2022-05-17T15:26:49Z</dc:date>
    <item>
      <title>How to write a Regex to search globally?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598078#M208266</link>
      <description>&lt;P&gt;below is the data which has multiple features for a single item. I want to write a regex which could search all occurrences of feature (not just first occurance) and then count the feature . I have written below search string but count value is not consistent. can someone plz take a look and advice.&lt;/P&gt;
&lt;P&gt;Many thanks in advance.&lt;/P&gt;
&lt;P&gt;|makeresults&lt;BR /&gt;| eval _raw="[{\"\"feature\"\": \"\"INTDATA\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"INTDATA2\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"MGDAT0\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"MGPR2TI\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"MSTORE\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"PNINCLWAP\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"PRMCAFIND\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"3WY\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CFC\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CFU\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CLIP\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CLIR\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CLW\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"DATA\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"CAMTAC\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"HOLD\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"INROAM\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"ISP\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"MSTORE\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"NWROAM\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"PERMGL\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"SMSO\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"VM\"\"},&lt;BR /&gt;{\"\"feature\"\": \"\"GFLEX\"\"}]"&lt;BR /&gt;|rex max_match=0 "\"\"feature\"\": \"\"(?&amp;lt;feature&amp;gt;.*?)\"\"}"&lt;BR /&gt;|stats count(feature) by feature&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 14:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598078#M208266</guid>
      <dc:creator>onthakur</dc:creator>
      <dc:date>2022-05-17T14:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Regex to search globally?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598110#M208279</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|makeresults
| eval _raw="[{\"\"feature\"\": \"\"INTDATA\"\"},
{\"\"feature\"\": \"\"INTDATA2\"\"},
{\"\"feature\"\": \"\"MGDAT0\"\"},
{\"\"feature\"\": \"\"MGPR2TI\"\"},
{\"\"feature\"\": \"\"MSTORE\"\"},
{\"\"feature\"\": \"\"PNINCLWAP\"\"},
{\"\"feature\"\": \"\"PRMCAFIND\"\"},
{\"\"feature\"\": \"\"3WY\"\"},
{\"\"feature\"\": \"\"CFC\"\"},
{\"\"feature\"\": \"\"CFU\"\"},
{\"\"feature\"\": \"\"CLIP\"\"},
{\"\"feature\"\": \"\"CLIR\"\"},
{\"\"feature\"\": \"\"CLW\"\"},
{\"\"feature\"\": \"\"DATA\"\"},
{\"\"feature\"\": \"\"CAMTAC\"\"},
{\"\"feature\"\": \"\"HOLD\"\"},
{\"\"feature\"\": \"\"INROAM\"\"},
{\"\"feature\"\": \"\"ISP\"\"},
{\"\"feature\"\": \"\"MSTORE\"\"},
{\"\"feature\"\": \"\"NWROAM\"\"},
{\"\"feature\"\": \"\"PERMGL\"\"},
{\"\"feature\"\": \"\"SMSO\"\"},
{\"\"feature\"\": \"\"VM\"\"},
{\"\"feature\"\": \"\"GFLEX\"\"}]"
|rex max_match=0 "\"\"feature\"\": \"\"(?&amp;lt;feature&amp;gt;.*?)\"\"}"| mvexpand feature
|stats count(feature) by feature&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 May 2022 15:26:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598110#M208279</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-05-17T15:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a Regex to search globally?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598264#M208320</link>
      <description>&lt;P&gt;thank you that works.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 08:47:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-Regex-to-search-globally/m-p/598264#M208320</guid>
      <dc:creator>onthakur</dc:creator>
      <dc:date>2022-05-18T08:47:46Z</dc:date>
    </item>
  </channel>
</rss>

