minor documentation tweaks.
This commit is contained in:
Родитель
07d4873968
Коммит
22cf24c3f2
18
README
18
README
|
@ -3566,6 +3566,15 @@ Nginx API for Lua
|
|||
this requires PCRE 6.0+ or else a Lua exception will be thrown.
|
||||
first introduced in ngx_lua v0.3.1rc30.
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
|
||||
i case insensitive mode (similar to Perl's /i modifier)
|
||||
|
||||
j enable PCRE JIT compilation, this requires PCRE 8.21+ which
|
||||
|
@ -3588,15 +3597,6 @@ Nginx API for Lua
|
|||
|
||||
x extended mode (similar to Perl's /x modifier)
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
|
||||
These options can be combined:
|
||||
|
||||
local m = ngx.re.match("hello, world", "HEL LO", "ix")
|
||||
|
|
|
@ -3286,6 +3286,15 @@ Specify `options` to control how the match operation will be performed. The foll
|
|||
this requires PCRE 6.0+ or else a Lua exception will be thrown.
|
||||
first introduced in ngx_lua v0.3.1rc30.
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
|
||||
i case insensitive mode (similar to Perl's /i modifier)
|
||||
|
||||
j enable PCRE JIT compilation, this requires PCRE 8.21+ which
|
||||
|
@ -3308,15 +3317,6 @@ Specify `options` to control how the match operation will be performed. The foll
|
|||
|
||||
x extended mode (similar to Perl's /x modifier)
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
|
||||
|
||||
These options can be combined:
|
||||
|
||||
|
|
|
@ -3172,6 +3172,15 @@ Specify <code>options</code> to control how the match operation will be performe
|
|||
this requires PCRE 6.0+ or else a Lua exception will be thrown.
|
||||
first introduced in ngx_lua v0.3.1rc30.
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
|
||||
i case insensitive mode (similar to Perl's /i modifier)
|
||||
|
||||
j enable PCRE JIT compilation, this requires PCRE 8.21+ which
|
||||
|
@ -3193,15 +3202,6 @@ Specify <code>options</code> to control how the match operation will be performe
|
|||
the --enable-utf8 option or else a Lua exception will be thrown.
|
||||
|
||||
x extended mode (similar to Perl's /x modifier)
|
||||
|
||||
D enable duplicate named pattern support. This allows named
|
||||
subpattern names to be repeated, returning the captures in
|
||||
an array-like Lua table. for example,
|
||||
local m = ngx.re.match("hello, world",
|
||||
"(?<named>\w+), (?<named>\w+)",
|
||||
"D")
|
||||
-- m["named"] == {"hello", "world"}
|
||||
this option was first introduced in the v0.7.14 release.
|
||||
</geshi>
|
||||
|
||||
These options can be combined:
|
||||
|
|
Загрузка…
Ссылка в новой задаче