~ chicken-core (chicken-5) b982e51adf373805d7bcab097abcf19d6125764a
commit b982e51adf373805d7bcab097abcf19d6125764a Author: Evan Hanson <evhan@foldling.org> AuthorDate: Sat Nov 16 17:50:34 2013 +1300 Commit: Evan Hanson <evhan@foldling.org> CommitDate: Sat Nov 16 17:50:34 2013 +1300 Fix incorrect irregex-search examples in irregex docs diff --git a/manual/Unit irregex b/manual/Unit irregex index 6bd5c151..a7dc32f5 100644 --- a/manual/Unit irregex +++ b/manual/Unit irregex @@ -92,7 +92,7 @@ Examples: <enscript highlight=scheme> (irregex-search "foobar" "abcFOOBARdef") => #f -(irregex-search "foobar" "abcFOOBARdef" 'i) => #<match> +(irregex-search (irregex "foobar" 'i) "abcFOOBARdef") => #<match> (irregex-search '(w/nocase "foobar") "abcFOOBARdef") => #<match> </enscript> @@ -404,7 +404,7 @@ matches the pattern: (irregex-search '(: "match" (? "es") "!") "match!") => #<match> -(irregex-search '(: "match" (? "es") "!") "matche!") => #<match> +(irregex-search '(: "match" (? "es") "!") "matche!") => #f </enscript> To optionally match any number of times, use {{*}}, the Kleene star:Trap