Great Circle Associates Majordomo-Users
(May 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: archive2.pl and EOL
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Mon, 5 May 1997 15:20:05 -0500 (CDT)
To: kendall @ lists . tax . org (Kendall P. Bullen)
Cc: pbostrom @ morino . org, chris @ sparkie . osl . state . or . us, majordomo-users @ GreatCircle . COM
In-reply-to: <Pine.LNX.3.95.970505154010.20949A-100000@lists.tax.org> from "Kendall P. Bullen" at May 5, 97 03:41:33 pm
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Kendall P. Bullen writes: ]
> 
> On Mon, 5 May 1997, Peter Bostrom wrote:
> 
> >      #substitute ends with 0-9 and = to nothing, and vice versa
> >      $_=~s/=[0-9][0-9]$//;
> >      $_=~s/=[0-9]$//;
> >      $_=~s/=$//;
> 
> So, perhaps this would work:
> 
> s/=\d?\d?$//;
> 
> That should replace '=' followed by 0-2 digits, at the end of a line,
> with nothing, using one substitution instead of three.

Better, but those are hex numbers, not decimal (space == 20 base 16).

    s/=[0-9a-f]?[0-9a-f]?$//i;

-- 
 Dave Wolfe


Follow-Ups:
References:
Indexed By Date Previous: Re: archive2.pl and EOL
From: "Mats Dufberg" <Mats.Dufberg@abc.se>
Next: majordomo forcing fully qualified addresses
From: Jim Glockling <jglockling@bbn.com>
Indexed By Thread Previous: RE: archive2.pl and EOL
From: "Kendall P. Bullen" <kendall@lists.tax.org>
Next: Re: archive2.pl and EOL
From: "Kendall P. Bullen" <kendall@lists.tax.org>

Google
 
Search Internet Search www.greatcircle.com