diff options
Diffstat (limited to 'httpd/patterns.7')
-rw-r--r-- | httpd/patterns.7 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/httpd/patterns.7 b/httpd/patterns.7 index 7c951db..a01ede5 100644 --- a/httpd/patterns.7 +++ b/httpd/patterns.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: patterns.7,v 1.2 2015/06/23 17:29:19 jmc Exp $ +.\" $OpenBSD: patterns.7,v 1.5 2015/06/30 19:01:05 jmc Exp $ .\" .\" Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org> .\" Copyright (C) 1994-2015 Lua.org, PUC-Rio. @@ -23,9 +23,9 @@ .\" SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. .\" .\" Derived from section 6.4.1 in manual.html of Lua 5.3.1: -.\" $Id: patterns.7,v 1.2 2015/06/23 17:29:19 jmc Exp $ +.\" $Id: patterns.7,v 1.5 2015/06/30 19:01:05 jmc Exp $ .\" -.Dd $Mdocdate: June 23 2015 $ +.Dd $Mdocdate: June 30 2015 $ .Dt PATTERNS 7 .Os .Sh NAME @@ -268,7 +268,7 @@ For instance, if we apply the pattern .Qq ()aa() on the string .Qq flaaap , -there will be two captures: 3 and 5. +there will be two captures: 2 and 4. .Sh SEE ALSO .Xr fnmatch 3 , .Xr re_format 7 , @@ -302,3 +302,8 @@ It was turned into a native C API for .Xr httpd 8 by .An Reyk Floeter Aq Mt reyk@openbsd.org . +.Sh CAVEATS +A notable difference with the Lua implementation is the position in the string +returned by captures. +It follows the C-style indexing (position starting from 0) +instead of Lua-style indexing (position starting from 1). |