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

[REBOL] diff... anyone?

From: maximo::meteorstudios::com at: 19-Jun-2003 18:33

Are there any rebol diff functions or objects available, that: given two strings: return a block with text strings id pairs which identify if the text was in one, the other or both strings... something like:
>>a: "my very insane momy likes to cook her boots before washing them" >>b: "my not so sane momy really likes to cook boots" >>blk: diff a b
;which would result in a block like (or something similar)
>> probe blk
[ both "my " first "very in" second "not so " both "sane momy " second "really " both "likes to cook boots" first " before washing them" ]
>>
TIA... -max PS: sorry for today's badly written messages... I was doing all sorts of stuff at the same time... ----------- meteor Studios, T.D. ----------- Strong enough for a man, but made for a woman