Hi:
I want to write a function that tests a string
for an exclusive set of characters:
ex:
found-unwanted: func [str[string!] allowed[string!]]
[
;test <str> to make sure that only characters in
; <allowed> are present, return true if not all
; characters in <str> match characters in <allowed>
]
found-unwanted "abd" "abc"
== true
; the first parameters contains a 'd' which is not allowable,
; because it is not found in the second parameter
Given what I know now, I can do this in about 5 lines of rebol code.
I bet someone out there can do it in 1!!
Thanks folks!
Tim