Name
filterchars — Filters characters out of a String
Synopsis
string
filterchars
( |
string
STRING
, |
|
string
CHARS
) ; |
Parameters
-
string
STRING
-
string
CHARS
chars to be included
Description
Returns a string that results from string STRING
by removing all characters that do not occur in CHARS
.
Usage
filterchars ("a", "abcdefghijklmnopqrstuvwxyz") -> "a"
filterchars ("abc","cde") -> "c"