Read Me - Common Public License V1.0 - Copyright Notice(©)

matchChar


>>-matchChar(n,chars)-------------------------><

Returns .true ("1") if the character at position [n] matches any character of the string [chars] . Returns .false ("0") if the character does not match any of the characters in the reference set. The argument [n] must be a positive whole number less than or equal to the length of the target string.

String class - matchChar method

"a+b"~matchChar(2, "+-*/")           ->    1
"a+b"~matchChar(1, "+-*/")           ->    0
"Friday"~matchChar(3, "aeiou")       ->    1
"FRIDAY"~matchChar(3, "aeiou")       ->    0

Read Me - Common Public License V1.0 - Copyright Notice(©)