<?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: issue in regex in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/543328#M153906</link>
    <description>&lt;P&gt;i have Regex in transform.com .&lt;/P&gt;&lt;P&gt;which is good for performance&lt;/P&gt;</description>
    <pubDate>Thu, 11 Mar 2021 08:21:36 GMT</pubDate>
    <dc:creator>pragycho</dc:creator>
    <dc:date>2021-03-11T08:21:36Z</dc:date>
    <item>
      <title>issue in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/542746#M153741</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single lia-quilt-column-message-body-content"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;&lt;DIV class="lia-message-body lia-component-message-view-widget-body lia-component-body-signature-highlight-escalation lia-component-message-view-widget-body-signature-highlight-escalation"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;i&amp;nbsp; want to ignore some comment line and last comment&amp;nbsp; store value in field.&lt;/P&gt;&lt;P&gt;for example&amp;nbsp; , I have log where first&amp;nbsp; 3 line field is in commented for Version, Date, Software&lt;/P&gt;&lt;P&gt;#Ver: 1.0&lt;BR /&gt;#Date: 2020-04-18 11:10:15&lt;BR /&gt;#Software: ABC for Web 11.8.0-414&lt;/P&gt;&lt;P&gt;how to write the regex expression for this where i can store last field value&lt;/P&gt;&lt;P&gt;my regex REGEX = ^\#&amp;nbsp; but it is dropping all lines with leading hash&lt;/P&gt;&lt;P&gt;how to store&amp;nbsp; Software value in field but other previous&amp;nbsp; field&amp;nbsp; value can drop&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 07 Mar 2021 18:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/542746#M153741</guid>
      <dc:creator>pragycho</dc:creator>
      <dc:date>2021-03-07T18:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: issue in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/542748#M153743</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/134784"&gt;@pragycho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To exclude all lines beginning with # except for #Software in a transform evaluated at index time, try:&lt;/P&gt;&lt;P&gt;^#(?!Software)&lt;/P&gt;&lt;P&gt;To extract the text after #Software: into a field in a transform at search time, try:&lt;/P&gt;&lt;P&gt;^#Software:\s+(?&amp;lt;software&amp;gt;.*)&lt;/P&gt;&lt;P&gt;This is the equivalent rex command:&lt;/P&gt;&lt;P&gt;| rex "^#Software:\s+(?&amp;lt;software&amp;gt;.*)"&lt;/P&gt;&lt;P&gt;I can provide more detailed conf examples if you can provide a little more context around where (index time or search time) you want to discard lines and extract values.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Mar 2021 18:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/542748#M153743</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-03-07T18:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: issue in regex</title>
      <link>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/543328#M153906</link>
      <description>&lt;P&gt;i have Regex in transform.com .&lt;/P&gt;&lt;P&gt;which is good for performance&lt;/P&gt;</description>
      <pubDate>Thu, 11 Mar 2021 08:21:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/issue-in-regex/m-p/543328#M153906</guid>
      <dc:creator>pragycho</dc:creator>
      <dc:date>2021-03-11T08:21:36Z</dc:date>
    </item>
  </channel>
</rss>

