<?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: Use rex to remove everything after a specific character, but not said character in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613506#M213221</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230706"&gt;@superisk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if yu want to remove everything after "[k]", you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=Cluster "s/[k].*/[k]/g"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
    <pubDate>Sat, 17 Sep 2022 15:50:24 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-09-17T15:50:24Z</dc:date>
    <item>
      <title>How do I use rex to remove everything after a specific character, but not said character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613505#M213220</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am using rex to remove everything after a specific character, but i need to keep the specific character.&lt;/P&gt;
&lt;P&gt;Currently, I am using this -&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=Cluster "s/[k].*//g"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;Unfortunately it is also removing the 'k'. Can I amend this argument slightly so it removes everything after k but the k remains? Unfortunately I don't have any / to work with.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 18 Sep 2022 23:45:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613505#M213220</guid>
      <dc:creator>superisk</dc:creator>
      <dc:date>2022-09-18T23:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use rex to remove everything after a specific character, but not said character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613506#M213221</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/230706"&gt;@superisk&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if yu want to remove everything after "[k]", you could try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=Cluster "s/[k].*/[k]/g"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 15:50:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613506#M213221</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-17T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: Use rex to remove everything after a specific character, but not said character</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613509#M213224</link>
      <description>&lt;P class="lia-align-left"&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Sep 2022 16:52:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-use-rex-to-remove-everything-after-a-specific-character/m-p/613509#M213224</guid>
      <dc:creator>superisk</dc:creator>
      <dc:date>2022-09-17T16:52:09Z</dc:date>
    </item>
  </channel>
</rss>

