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

[REBOL] Re: Best way to remove the last character from a string?

From: ingo:2b1 at: 14-Dec-2004 23:57

Hi Philippe, [lp--legoff--free--fr] wrote:
> Hello Peter, > >>>mystring: "123456" > > == "123456" > remove find mystring last mystring > == "" > probe mystring > == "12345"
But it only works, if the last charater is nowhere else in the string.
>> mystring: "123456543"
== "123456543"
>> remove find mystring last mystring
== "456543"
>> mystring
== "12456543" This is propably not what you want. Ingo