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: ingo:2b1 at: 16-Jul-2003 15:21

Hi Christophe, Coussement Christophe wrote:
> but even shorter: > > ;==> index keeps track of position where "/" is found > if index: find parsestring "/" [ > remove index > ] > > ==xtof
Only this will remove the _first_occurrences_ of "/" from the string, while, as I understand it, it should only be removed if it is actully the _last_character_ in the string.