From a181c220154050ed785fad36a78917f0a21d2dd8 Mon Sep 17 00:00:00 2001 From: Daniel Ehrenberg Date: Tue, 17 Mar 2009 00:10:55 -0500 Subject: [PATCH] Regexp docs typo fix --- basis/regexp/regexp-docs.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/regexp/regexp-docs.factor b/basis/regexp/regexp-docs.factor index d62a03ade5..6ad340a82d 100644 --- a/basis/regexp/regexp-docs.factor +++ b/basis/regexp/regexp-docs.factor @@ -30,7 +30,7 @@ ARTICLE: { "regexp" "intro" } "A quick introduction to regular expressions" { $code "R/ (f|b)oo+/ \"bar\" re-replace" } "To search a file for all lines that match a given regular expression, you could use code like this:" { $code <" "file.txt" ascii file-lines [ R/ (f|b)oo+/ re-contains? ] filter "> } -"To test if a string in its entirity matches a regular expression, the following can be used:" +"To test if a string in its entirety matches a regular expression, the following can be used:" { $example <" USING: regexp prettyprint ; "fooo" R/ (b|f)oo+/ matches? . "> "t" } "Regular expressions can't be used for all parsing tasks. For example, they are not powerful enough to match balancing parentheses." ;