[REBOL] can't quite get it right...
From: ryan:christiansen:intellisol at: 6-Sep-2001 17:31
I'm trying to replace uppercase letters in a string with "[Aa]" (if the
letter is "A") and the routine runs okay, but doesn't do anything at all to
the word 'value. What am I doing wrong?
value: "Forrest Gump"
foreach value-letter value [
letter: make string! value-letter
uppercase-letter: uppercase letter
either find/match/case uppercase-letter letter [][
upperlowerletters: rejoin [{^[} uppercase-letter letter
{^]}]
replace value value-letter upperlowerletters
]
]
Ryan C. Christiansen
Web Developer
Intellisol International
4733 Amber Valley Parkway
Fargo, ND 58104
701-235-3390 ext. 6671
FAX: 701-235-9940
http://www.intellisol.com
Global Leader in People Performance Software
_____________________________________
Confidentiality Notice
This message may contain privileged and confidential information. If you
think, for any reason, that this message may have been addressed to you in
error, you must not disseminate, copy or take any action in reliance on it,
and we would ask you to notify us immediately by return email to
[ryan--christiansen--intellisol--com]