[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 > ] > > ==xtofOnly 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.