<?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: Excluding multiple slashes throughout regex capture string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681674#M232943</link>
    <description>&lt;P&gt;Thank you, that did the trick.&amp;nbsp; I was trying to do everything through the field extraction page, but using 'sed' worked better.&amp;nbsp; It kept all the context I needed and eliminated all the slashes.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Mar 2024 14:00:11 GMT</pubDate>
    <dc:creator>splunkrush</dc:creator>
    <dc:date>2024-03-22T14:00:11Z</dc:date>
    <item>
      <title>Excluding multiple slashes throughout regex capture string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681667#M232938</link>
      <description>&lt;P&gt;Trying to figure out how to extract a field using regex to capture the entire string.&amp;nbsp; Only problem is there are a bunch of slashes throughout.&amp;nbsp; Sometimes one, sometimes 3, etc.&amp;nbsp; I've tried variations of commands I found in the documentation but no luck.&amp;nbsp; is this possible?&lt;/P&gt;&lt;P&gt;Example String of Field I want to extract with all the context appended to one another minus the slashes:&lt;/P&gt;&lt;P&gt;\"\\\"Field1\\\":\"context"\\\",\\\:"\"context"\\\",\\\:"\"context"\\\",\\\:"\"context"\\\",\\\:"\"context"\\\"context\\\\\\\context\\\\\\\\Field2&lt;BR /&gt;&lt;BR /&gt;Want it to be extracted like this: Field1="context","context" etc so slashes are eliminated.&amp;nbsp; Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:31:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681667#M232938</guid>
      <dc:creator>splunkrush</dc:creator>
      <dc:date>2024-03-22T13:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple slashes throughout regex capture string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681671#M232940</link>
      <description>&lt;P&gt;You can simply remove the backslashes like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex field=_raw mode=sed "s/\\\//g"&lt;/LI-CODE&gt;&lt;P&gt;However, I suspect this is not what you want, but what you want it unclear since all your data is "context". Are you expecting Field1 to be "context,context,context", or something else?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 13:46:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681671#M232940</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-03-22T13:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Excluding multiple slashes throughout regex capture string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681674#M232943</link>
      <description>&lt;P&gt;Thank you, that did the trick.&amp;nbsp; I was trying to do everything through the field extraction page, but using 'sed' worked better.&amp;nbsp; It kept all the context I needed and eliminated all the slashes.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2024 14:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Excluding-multiple-slashes-throughout-regex-capture-string/m-p/681674#M232943</guid>
      <dc:creator>splunkrush</dc:creator>
      <dc:date>2024-03-22T14:00:11Z</dc:date>
    </item>
  </channel>
</rss>

