#26 COMPRESS function

closed
Mark Hessling
None
5
2010-07-30
2009-10-05
Anonymous
No

A function to squeeze blanks in the middle of a string. SPACE and STRIP functions remove leading and trailing blanks but there is no function in Regina Rexx to remove embedded blanks.

Discussion

  • Mark Hessling
    Mark Hessling
    2009-10-05

    SPACE removes leading and trailing blanks AND compresses multiple consecutive spaces in a string to a single space.
    say '['space(' this has spaces ')']' results in '[this has spaces]'
    Works for me. What version of Regina and what platform are you running on?

     
  • Mark Hessling
    Mark Hessling
    2009-10-05

    • assigned_to: nobody --> rexx
     
  • REXX-Regina_3.4(MT) 5.00 30 Dec 2007 on Ubuntu Jaunty 9.04.

     
  • Mark Hessling
    Mark Hessling
    2010-07-30

    No response from originator as to why SPACE doesn't work. Works for me.

     
  • Mark Hessling
    Mark Hessling
    2010-07-30

    • status: open --> closed