Carriage Return

From: randy matz (rmatzat_private)
Date: Wed Feb 19 2003 - 11:44:29 PST

  • Next message: Renaud Deraison: "Re: Carriage Return"

    In the current script that I am writeing, I used egrep to pull out a
    line from returned input.  I then used the - to remove parts of the
    string I didn't want, but I still end up with a carriage return
    (newline) at the end.  How would I remove that from the string?
    Example snippet of code is this:
    repo = egrep(pattern:".*version.*", string:r);
       repo = repo - "<SMALL>SquirrelMail " - "<BR>";
    the original string looks like
    <SMALL>SquirrelMail version 1.2.9<BR>
    this is causeing problems when trying to compare version numbers.  The
    carriage return makes 1.2.9 appear larger than 1.2.10 or 1.3 or anything
    I can come up with.
    Thanks in advance
    Randy C. Matz, System Administrator
    Corporate Technologies USA, Inc., 
    A Vicom Company [NASDAQ: VICM] 2000 44th Street SW Suite 100, Fargo,
    North Dakota, 58103, USA
    1-701-281-5403 - Direct

    This archive was generated by hypermail 2b30 : Wed Feb 19 2003 - 11:49:42 PST