The mzlib/string library re-exports several functions
from scheme/base:
It also re-exports regexp-try-match as
regexp-match/fail-without-reading.
Produces a regexp for a an input “glob pattern” str. A
glob pattern is one that matches * with any string,
? with a single character, and character ranges are the same
as in regexps (unless simple? is true). In addition, the
resulting regexp does not match strings that begin with .,
unless str begins with . or hide-dots? is
#f. The resulting regexp can be used with string file names
to check the glob pattern. If the glob pattern is provided as a byte
string, the result is a byte regexp.
The case-sensitive? argument determines whether the resulting
regexp is case-sensitive.
If simple? is true, then ranges with
[...] in str are treated as literal
character sequences.
Destructively changes str to contain only lowercase
characters.
Destructively changes str to contain only uppercase
characters.
Reads and evaluates S-expressions from str, returning results
for all of the expressions in the string. If any expression produces
multiple results, the results are spliced into the resulting list. If
str contains only whitespace and comments, an empty list is
returned, and if str contains multiple expressions, the
result will be contain multiple values from all subexpressions.
The err-handler argument can be:
#f (the default) which means that errors are not
caught;
a one-argument procedure, which will be used with an exception
(when an error occurs) and its result will be returned
a thunk, which will be used to produce a result.
Prints expr into a string and returns the string.
Reads the first S-expression from
str and returns it. The
err-handler is as in
eval-string.
Reads all S-expressions from the string (or byte string)
str
and returns them in a list. The
err-handler is as in
eval-string.