<?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: regex to remove first occuring numeric values with coma in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497543#M138585</link>
    <description>&lt;P&gt;Hi @premranjithj&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval string="1,Woolworths appoints new chief executive#
2,Retailer Woolworths has appointed Roy Bagattini as its new group chief executive officer (CEO), with former chief Ian Moir set to step down on 16 February.#
123,Walmart is joining Albertsons and Kroger" 
| makemv delim="#" string 
| mvexpand string 
| eval temp=split(string,",") 
| eval result=mvindex(temp,1) |table result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Jan 2020 12:23:35 GMT</pubDate>
    <dc:creator>vnravikumar</dc:creator>
    <dc:date>2020-01-29T12:23:35Z</dc:date>
    <item>
      <title>regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497541#M138583</link>
      <description>&lt;P&gt;I want to remove the numeric value and comma which is occurring on the first  line beginning&lt;/P&gt;

&lt;P&gt;1,Woolworths appoints new chief executive&lt;BR /&gt;
2,Retailer Woolworths has appointed Roy Bagattini as its new group chief executive officer (CEO), with former chief Ian Moir set to step down on 16 February.&lt;BR /&gt;
123,Walmart is joining Albertsons and Kroger&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 11:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497541#M138583</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-01-29T11:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497542#M138584</link>
      <description>&lt;P&gt;Hi @premranjithj&lt;BR /&gt;&lt;BR /&gt;
Try something like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;your search...|rex field=_raw "^\d+\,(?P&amp;lt;text&amp;gt;.+)$"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;If that original string is already extracted to another field, replace &lt;CODE&gt;_raw&lt;/CODE&gt; with your fieldname.&lt;/P&gt;

&lt;P&gt;Let me know if that works!&lt;BR /&gt;
&lt;A href="https://regex101.com/r/W7Ea2p/1"&gt;https://regex101.com/r/W7Ea2p/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 11:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497542#M138584</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-01-29T11:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497543#M138585</link>
      <description>&lt;P&gt;Hi @premranjithj&lt;/P&gt;

&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval string="1,Woolworths appoints new chief executive#
2,Retailer Woolworths has appointed Roy Bagattini as its new group chief executive officer (CEO), with former chief Ian Moir set to step down on 16 February.#
123,Walmart is joining Albertsons and Kroger" 
| makemv delim="#" string 
| mvexpand string 
| eval temp=split(string,",") 
| eval result=mvindex(temp,1) |table result
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:23:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497543#M138585</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-01-29T12:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497544#M138586</link>
      <description>&lt;P&gt;Where does the '#' comes from?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:29:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497544#M138586</guid>
      <dc:creator>jawaharas</dc:creator>
      <dc:date>2020-01-29T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497545#M138587</link>
      <description>&lt;P&gt;For creating dummy event I had added # in the text to break&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497545#M138587</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2020-01-29T12:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497546#M138588</link>
      <description>&lt;P&gt;@vnravikumar thanks it worked&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497546#M138588</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-01-29T13:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: regex to remove first occuring numeric values with coma</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497547#M138589</link>
      <description>&lt;P&gt;@nickhillscpl cool ! worked , thanks&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 13:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-to-remove-first-occuring-numeric-values-with-coma/m-p/497547#M138589</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2020-01-29T13:49:56Z</dc:date>
    </item>
  </channel>
</rss>

