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

[REBOL] Re: removing a character with replace - was: RE: [REBOL]

From: louisaturk:coxinet at: 4-Nov-2002 23:47

Anton, At 12:24 PM 11/5/2002 +1100, you wrote:
>Actually, Louis probably wants this: > > replace/all first x #"=FF" ""
Actually I first tried: replace/all "replace/all x "=FF" "" but since it didn't work (because of the square brackets I overlooked), I tried searching for characters instead of strings. You did not mean to put "first" in your example, right?
>replacing with an empty string, not an empty character. >An empty character is ascii 0: > > >> to-integer #"" > == 0 > >which you can see escape-coded in the string below: > > "^@"
Thanks for pointing this out; I certainly didn't know it. Louis