<?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 remove a specific part of a string in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574100#M200074</link>
    <description>&lt;P&gt;excellent, thank you.&amp;nbsp; I had just figured it out but I also added field=attachmentName to create a fieldName.&lt;/P&gt;&lt;P&gt;| rex mode=sed field=attachmentName "s/\@test.com\/test\/2\_0\" xmlns:d4p1=\"http:\/\/www\.w3\.org\/1999\/xlink\"&amp;gt; &amp;lt;eb:Description xml:lang=\"en\"&amp;gt;/: /g"&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 23:13:36 GMT</pubDate>
    <dc:creator>siouxsiesioux</dc:creator>
    <dc:date>2021-11-08T23:13:36Z</dc:date>
    <item>
      <title>How to remove a specific part of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574088#M200070</link>
      <description>&lt;P&gt;My event returns the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1@test.com/test/2_0" xmlns:d4p1="&lt;A href="http://www.w3.org/1999/xlink" target="_blank" rel="noopener"&gt;http://www.w3.org/1999/xlink&lt;/A&gt;"&amp;gt; &amp;lt;eb:Description xml:lang="en"&amp;gt;test document ref 000000000000.rtf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but I want to strip the following string and replace with a colon space&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230991"&gt;@test&lt;/a&gt;.com/test/2_0" xmlns:d4p1="&lt;A href="http://www.w3.org/1999/xlink" target="_blank" rel="noopener"&gt;http://www.w3.org/1999/xlink&lt;/A&gt;"&amp;gt; &amp;lt;eb:Description xml:lang="en"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ideal Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1: test document ref 000000000000.rtf&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way of doing this?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 21:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574088#M200070</guid>
      <dc:creator>siouxsiesioux</dc:creator>
      <dc:date>2021-11-08T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific part of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574098#M200073</link>
      <description>&lt;LI-CODE lang="markup"&gt;| rex mode=sed "s/\@test.com\/test\/2\_0\" xmlns:d4p1=\"http:\/\/www\.w3\.org\/1999\/xlink\"&amp;gt; &amp;lt;eb:Description xml:lang=\"en\"&amp;gt;/: /g"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 08 Nov 2021 23:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574098#M200073</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-11-08T23:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific part of a string</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574100#M200074</link>
      <description>&lt;P&gt;excellent, thank you.&amp;nbsp; I had just figured it out but I also added field=attachmentName to create a fieldName.&lt;/P&gt;&lt;P&gt;| rex mode=sed field=attachmentName "s/\@test.com\/test\/2\_0\" xmlns:d4p1=\"http:\/\/www\.w3\.org\/1999\/xlink\"&amp;gt; &amp;lt;eb:Description xml:lang=\"en\"&amp;gt;/: /g"&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 23:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-remove-a-specific-part-of-a-string/m-p/574100#M200074</guid>
      <dc:creator>siouxsiesioux</dc:creator>
      <dc:date>2021-11-08T23:13:36Z</dc:date>
    </item>
  </channel>
</rss>

