These functions are defined in `rgx.c' using a POSIX or GNU
regex library. If your computer does not support regex, a package
is available via ftp from
`prep.ai.mit.edu:/pub/gnu/regex-0.12.tar.gz'. For a description of
regular expressions, See syntax.
regerror.
flags in regcomp is a string of option letters used to
control the compilation of the regular expression. The letters may
consist of:
n'
. or hat lists; ( [^...] )
i'
only when compiled with _GNU_SOURCE:
0'
f'
regcomp fails.
#f or a vector of integers. These integers are in
doublets. The first of each doublet is the index of string of
the start of the matching expression or sub-expression (delimited by
parentheses in the pattern). The last of each doublet is index of
string of the end of that expression. #f is returned if
the string does not match.
#t if the pattern such that regexp = (regcomp
pattern) matches string as a POSIX extended regular
expressions. Returns #f otherwise.
Regsearch searches for the pattern within the string.
Regmatch anchors the pattern and begins matching it against
string.
Regsearch returns the character position where re starts,
or #f if not found.
Regmatch returns the number of characters matched, #f if
not matched.
Regsearchv and regmatchv return the match vector is
returned if re is found, #f otherwise.
regcomp;
Compiled _GNU_SOURCE and using GNU libregex only:
When searching, if start is negative, the absolute value of start will be used as the start location and reverse searching will be performed.
String-split splits a string into substrings that are separated
by re, returning a vector of substrings.
String-splitv returns a vector of string positions that indicate
where the substrings are located.
sed.
string-edit to perform. If
#t, all occurances of re will be replaced. The default is
to perform one substitution.