From bba44e46e8a594ac3db7689384034f1c729bf8c3 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Sat, 19 Jul 2008 02:25:40 +0000 Subject: [PATCH] clarify arity of procedure input to regexp-match svn: r10838 --- collects/scribblings/reference/regexps.scrbl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/collects/scribblings/reference/regexps.scrbl b/collects/scribblings/reference/regexps.scrbl index 429f22f2f9..080fae142b 100644 --- a/collects/scribblings/reference/regexps.scrbl +++ b/collects/scribblings/reference/regexps.scrbl @@ -561,7 +561,11 @@ Performs a match using @scheme[pattern] on @scheme[input], and then returns a string or byte string in which the matching portion of @scheme[input] is replaced with @scheme[insert]. If @scheme[pattern] matches no part of @scheme[input], then @scheme[iput] is returned -unmodified. +unmodified. @scheme[insert] can be either a (byte) string, or a +function that returns a (byte) string --- in this case, the function +is applied on the list of values that @scheme[regexp-match] would +return (i.e., the first argument is the complete match, and then one +argument for each parenthesized sub-expression). If @scheme[pattern] is a string or character regexp and @scheme[input] is a string, then @scheme[insert] must be a string or a procedure that