<?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 - Cannot extract terms with spaces in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Regex-Cannot-extract-terms-with-spaces/m-p/614462#M11627</link>
    <description>&lt;P&gt;Solved it myself actually: | rex field=body "device-group:\s*(?&amp;lt;deviceGroup&amp;gt;.+?) succeeded"&lt;/P&gt;</description>
    <pubDate>Sun, 25 Sep 2022 18:48:49 GMT</pubDate>
    <dc:creator>POR160893</dc:creator>
    <dc:date>2022-09-25T18:48:49Z</dc:date>
    <item>
      <title>Regex - Cannot extract terms with spaces</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-Cannot-extract-terms-with-spaces/m-p/614461#M11626</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using the following rex command to extract all text in between&amp;nbsp;&lt;SPAN&gt;"....device-group:" and "succeeded ...." for a field called "old" and assigning the extracting values to a new field called "new".&lt;BR /&gt;&lt;BR /&gt;| rex field=old "device-group:\s*(?&amp;lt;new&amp;gt;\S+)"&lt;BR /&gt;&lt;BR /&gt;Currently, it is extracting all text in between&amp;nbsp;"....device-group:" and "succeeded ...." EXCEPT for cases where there are multiple words with spaces.&lt;BR /&gt;&lt;BR /&gt;Examples include:&lt;BR /&gt;&lt;BR /&gt;1) "Panorama push to device:013101009509 for device-group: Austin Cloud DMZ succeeded. JobId=2484595" where the extracted values should be "Austin Cloud DMZ "&lt;BR /&gt;&lt;BR /&gt;2) "Panorama push to device:013101014290 for device-group: Austin Bank Segmentation succeeded. JobId=2482583" where the extracted values should be "Austin Bank Segmentation"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can you please help on extracting&amp;nbsp; such cases too?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 18:31:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-Cannot-extract-terms-with-spaces/m-p/614461#M11626</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-09-25T18:31:32Z</dc:date>
    </item>
    <item>
      <title>Re: Regex - Cannot extract terms with spaces</title>
      <link>https://community.splunk.com/t5/Reporting/Regex-Cannot-extract-terms-with-spaces/m-p/614462#M11627</link>
      <description>&lt;P&gt;Solved it myself actually: | rex field=body "device-group:\s*(?&amp;lt;deviceGroup&amp;gt;.+?) succeeded"&lt;/P&gt;</description>
      <pubDate>Sun, 25 Sep 2022 18:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Regex-Cannot-extract-terms-with-spaces/m-p/614462#M11627</guid>
      <dc:creator>POR160893</dc:creator>
      <dc:date>2022-09-25T18:48:49Z</dc:date>
    </item>
  </channel>
</rss>

