Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: remove character from end of line if character exists?

From: antonr:iinet:au at: 17-Jul-2003 2:21

How about this: foreach s ["" "/" "abc/" "/abc/"][ if #"/" = pick back tail s 1 [remove back tail s] ?? s ] Handles if string is empty, too. Anton.