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

[REBOL] Alternate TRIM need

From: jinman:uwf at: 24-Aug-2004 13:50

I need to trim a string's delimiters. Is there a built in function for this? Or does someone have a nice function? EXAMPLE: PhoneString: {"123-4567"}
>> Print PhoneString
123-4567 ** See, it has quotes around it.. I don't want the quotes. *** This is what I am looking for..
>> x: NewTrim/delimiter PhoneString {"} >> print x
123-4567 ** See, the quotes are gone. Where newTrim by itself will trim spaces.. And with the "/delimiter" attribute.. it will take a character the would be the field delimiter. John.