<?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 -  exclude multiple parentheses and slashes from a field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611441#M212592</link>
    <description>&lt;P&gt;You can combine the parentheses and slash into a character class to strip them all out at once.&amp;nbsp; You will, however, need a separate rex command for each field being processed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=Field_A "s;[\(\)/];;g"

| rex mode=sed field=Field_B "s;[\(\)/];;g"&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 31 Aug 2022 12:23:30 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2022-08-31T12:23:30Z</dc:date>
    <item>
      <title>Help with regex -  How to exclude multiple parentheses and slashes from a field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611435#M212591</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is there a more elegant way to do this? New to using rex &amp;amp; I can’t seem to strip out the multiple parentheses and slashes from a field without using replace.&amp;nbsp; (I don't have control over the data, I know it is better to strip it out first.) These do work but in some cases there are more parentheses and slashes - is there a way to strip all of them out at once, or do I need to make repeating phrases?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;| rex mode=sed field=Field_A "s/\(\)/ /g"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;| rex mode=sed field=Field_B "s/\(\)/ /g"&lt;/P&gt;
&lt;P&gt;| rex mode=sed field=Field_B "s/\// /g"&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 14:10:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611435#M212591</guid>
      <dc:creator>jalo23</dc:creator>
      <dc:date>2022-08-31T14:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: regex -  exclude multiple parentheses and slashes from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611441#M212592</link>
      <description>&lt;P&gt;You can combine the parentheses and slash into a character class to strip them all out at once.&amp;nbsp; You will, however, need a separate rex command for each field being processed.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex mode=sed field=Field_A "s;[\(\)/];;g"

| rex mode=sed field=Field_B "s;[\(\)/];;g"&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 31 Aug 2022 12:23:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611441#M212592</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-08-31T12:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: regex -  exclude multiple parentheses and slashes from a field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611448#M212594</link>
      <description>&lt;P&gt;That worked great, thank you!&lt;/P&gt;&lt;P&gt;| rex mode=sed field=Field_A "s;[\(\)/];;g"&lt;BR /&gt;| rex mode=sed field=Field_A "s;[\(\)/];;g"&lt;BR /&gt;| rex mode=sed field=Field_A "s/\(\)/ /g"&lt;BR /&gt;| rex mode=sed field=Field_A "s/\// /g"&lt;BR /&gt;| rex mode=sed field=Field_A "s/\// /g"&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2022 12:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Help-with-regex-How-to-exclude-multiple-parentheses-and-slashes/m-p/611448#M212594</guid>
      <dc:creator>jalo23</dc:creator>
      <dc:date>2022-08-31T12:55:04Z</dc:date>
    </item>
  </channel>
</rss>

