<?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 Rtrim a period in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125894#M9930</link>
    <description>&lt;P&gt;I'm trying to use rtrim but when it sees a period it does not remove just the period.  It removes extra characters too.  I've tried escaping it but I get the same result.  I know I'm doing something wrong but I can't figure out how to fix it.  Can anyone tell me if there's a way to have rtrim see the period as a period and just remove it?  Or any other suggestions?  Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$to$=&amp;lt;someaddress@somedomain.com.procmail&amp;gt;

eval new_to=ltrim(rtrim(to,".procmail&amp;gt;"),"&amp;lt;")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result is:&lt;BR /&gt;
$new_to$=someaddress@somed&lt;/P&gt;

&lt;P&gt;If I try the following I get the same result&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval new_to=ltrim(rtrim(to,"\.procmail&amp;gt;"),"&amp;lt;")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to get&lt;/P&gt;

&lt;P&gt;&lt;A href="mailto:someaddress@somedomain.com"&gt;someaddress@somedomain.com&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Apr 2014 16:41:17 GMT</pubDate>
    <dc:creator>kragel</dc:creator>
    <dc:date>2014-04-09T16:41:17Z</dc:date>
    <item>
      <title>Rtrim a period</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125894#M9930</link>
      <description>&lt;P&gt;I'm trying to use rtrim but when it sees a period it does not remove just the period.  It removes extra characters too.  I've tried escaping it but I get the same result.  I know I'm doing something wrong but I can't figure out how to fix it.  Can anyone tell me if there's a way to have rtrim see the period as a period and just remove it?  Or any other suggestions?  Thanks.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$to$=&amp;lt;someaddress@somedomain.com.procmail&amp;gt;

eval new_to=ltrim(rtrim(to,".procmail&amp;gt;"),"&amp;lt;")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The result is:&lt;BR /&gt;
$new_to$=someaddress@somed&lt;/P&gt;

&lt;P&gt;If I try the following I get the same result&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval new_to=ltrim(rtrim(to,"\.procmail&amp;gt;"),"&amp;lt;")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm trying to get&lt;/P&gt;

&lt;P&gt;&lt;A href="mailto:someaddress@somedomain.com"&gt;someaddress@somedomain.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:41:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125894#M9930</guid>
      <dc:creator>kragel</dc:creator>
      <dc:date>2014-04-09T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Rtrim a period</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125895#M9931</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...|  eval new_to=replace(replace(to,".procmail&amp;gt;",""),"&amp;lt;","")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR (overwrite same field)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| rex field=to mode=sed "s/(\&amp;lt;)(\S+)(\.procmail\&amp;gt;)/\2/g"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Apr 2014 16:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125895#M9931</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-09T16:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Rtrim a period</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125896#M9932</link>
      <description>&lt;P&gt;Replace worked.  Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Apr 2014 18:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Rtrim-a-period/m-p/125896#M9932</guid>
      <dc:creator>kragel</dc:creator>
      <dc:date>2014-04-09T18:37:02Z</dc:date>
    </item>
  </channel>
</rss>

