Hi John,

Since you already know REXX (and it's a great string handling language) why
not just use Regina REXX?  If you are running a SuSE distribution it's
probably already installed:

regina -h

Michael Coffin, VM Systems Programmer 
Internal Revenue Service - Room�6030 
1111 Constitution Avenue, N.W. 
Washington, D.C.� 20224 

Voice: (202)�927-4188�� FAX:� (202) 622-6726
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  



-----Original Message-----
From: McKown, John [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 28, 2003 10:41 AM
To: [EMAIL PROTECTED]
Subject: Re: Stripping trailing blanks?


Thanks. I hadn't thought of anchoring the pattern to the end of the line.


--
John McKown
Senior Systems Programmer
UICI Insurance Center
Applications & Solutions Team
+1.817.255.3225

This message (including any attachments) contains confidential information
intended for a specific individual and purpose, and its' content is
protected by law.  If you are not the intended recipient, you should delete
this message and are hereby notified that any disclosure, copying, or
distribution of this transmission, or taking any action based on it, is
strictly prohibited.

> -----Original Message-----
> From: John Summerfield [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 28, 2003 9:33 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Stripping trailing blanks?
>
>
> On Mon, 28 Jul 2003, McKown, John wrote:
>
<snip>
> >         $new1 = reverse($_);
> >         $_ = $new1;
> >         s/ *(.*)/\1/;
> s/ +$//; # or something like.

<snip>

>
> The dollar in my regex represents end of line. If I have it right, it 
> will change one or more consecutive spaces at the end of line to null.
>
> >
>
> --
>
>
> Cheers
> John.
>
> Join the "Linux Support by Small Businesses" list at 
> http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
> Copyright John Summerfield. Reproduction prohibited.
>

Reply via email to