Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nils Goroll
libvmod-re
Commits
bf1afdd3
Commit
bf1afdd3
authored
Feb 02, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto-updated documentation
parent
dcc90f18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
32 deletions
+14
-32
README.rst
README.rst
+14
-32
No files found.
README.rst
View file @
bf1afdd3
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
.. role:: ref(emphasis)
.. role:: ref(emphasis)
.. _vmod_re(3):
=======
=======
vmod_re
vmod_re
=======
=======
...
@@ -18,10 +16,6 @@ Varnish Module for Regular Expression Matching with Subexpression Capture
...
@@ -18,10 +16,6 @@ Varnish Module for Regular Expression Matching with Subexpression Capture
:Manual section: 3
:Manual section: 3
SYNOPSIS
SYNOPSIS
========
========
...
@@ -119,11 +113,10 @@ since it re-uses the compiled expression obtained at VCL
...
@@ -119,11 +113,10 @@ since it re-uses the compiled expression obtained at VCL
initialization. So if you are matching against a fixed pattern that
initialization. So if you are matching against a fixed pattern that
never changes during the lifetime of VCL, use ``match``.
never changes during the lifetime of VCL, use ``match``.
.. _vmod_re.regex:
.. _obj_regex:
new xregex = re.regex(STRING, INT limit, INT limit_recursion)
-------------------------------------------------------------
regex(...)
----------
::
::
...
@@ -144,12 +137,12 @@ Description
...
@@ -144,12 +137,12 @@ Description
The optional parameters ``limit`` and ``limit_recursion`` are
The optional parameters ``limit`` and ``limit_recursion`` are
per-object defaults for the respective parameters of the
per-object defaults for the respective parameters of the
`
func_
regex.match`_ method.
`
vmod_re.
regex.match`_ method.
Example
Example
``new myregex = re.regex("\bmax-age\s*=\s*(\d+)");``
``new myregex = re.regex("\bmax-age\s*=\s*(\d+)");``
.. _
func_
regex.match:
.. _
vmod_re.
regex.match:
BOOL xregex.match(STRING, INT limit, INT limit_recursion)
BOOL xregex.match(STRING, INT limit, INT limit_recursion)
---------------------------------------------------------
---------------------------------------------------------
...
@@ -167,20 +160,19 @@ Description
...
@@ -167,20 +160,19 @@ Description
internal matching function calls in a ``pcre_exec()``
internal matching function calls in a ``pcre_exec()``
execution, analogous to the varnishd ``pcre_match_limit``
execution, analogous to the varnishd ``pcre_match_limit``
parameter. For the default value 0, the ``limit`` given to the
parameter. For the default value 0, the ``limit`` given to the
constructor `
obj_
regex`_ is used.
constructor `
vmod_re.
regex`_ is used.
The optional parameter ``limit_recursion`` restricts the
The optional parameter ``limit_recursion`` restricts the
number of internal matching function recursions in a
number of internal matching function recursions in a
``pcre_exec()`` execution, analogous to the varnishd
``pcre_exec()`` execution, analogous to the varnishd
``pcre_match_limit_recursion`` parameter. For the default
``pcre_match_limit_recursion`` parameter. For the default
value 0, the ``limit_recursion`` given to the constructor
value 0, the ``limit_recursion`` given to the constructor
`
obj_
regex`_ is used.
`
vmod_re.
regex`_ is used.
Example
Example
``if (myregex.match(beresp.http.Surrogate-Control)) { # ...``
``if (myregex.match(beresp.http.Surrogate-Control)) { # ...``
.. _vmod_re.regex.backref:
.. _func_regex.backref:
STRING xregex.backref(INT, STRING fallback)
STRING xregex.backref(INT, STRING fallback)
-------------------------------------------
-------------------------------------------
...
@@ -216,14 +208,10 @@ Description
...
@@ -216,14 +208,10 @@ Description
Example
Example
``set beresp.ttl = std.duration(myregex.backref(1, "120"), 120s);``
``set beresp.ttl = std.duration(myregex.backref(1, "120"), 120s);``
.. _vmod_re.match_dyn:
BOOL match_dyn(STRING, STRING, INT limit, INT limit_recursion)
--------------------------------------------------------------
.. _func_match_dyn:
match_dyn(...)
--------------
::
::
...
@@ -245,14 +233,13 @@ Description
...
@@ -245,14 +233,13 @@ Description
``false``.
``false``.
For parameters ``limit`` and ``limit_recursion`` see
For parameters ``limit`` and ``limit_recursion`` see
`
func_
regex.match`_, except that there is no object to inherit
`
vmod_re.
regex.match`_, except that there is no object to inherit
defaults from.
defaults from.
Example
Example
``if (re.match_dyn(req.http.Foo + "(\d+)", beresp.http.Bar)) { # ...``
``if (re.match_dyn(req.http.Foo + "(\d+)", beresp.http.Bar)) { # ...``
.. _vmod_re.backref_dyn:
.. _func_backref_dyn:
STRING backref_dyn(INT, STRING fallback)
STRING backref_dyn(INT, STRING fallback)
----------------------------------------
----------------------------------------
...
@@ -278,8 +265,7 @@ Description
...
@@ -278,8 +265,7 @@ Description
in the same task scope, then a ``VCL_Error`` message is logged, and
in the same task scope, then a ``VCL_Error`` message is logged, and
the fallback string is returned.
the fallback string is returned.
.. _vmod_re.version:
.. _func_version:
STRING version()
STRING version()
----------------
----------------
...
@@ -337,10 +323,6 @@ SEE ALSO
...
@@ -337,10 +323,6 @@ SEE ALSO
* source repository: https://code.uplex.de/uplex-varnish/libvmod-re
* source repository: https://code.uplex.de/uplex-varnish/libvmod-re
COPYRIGHT
COPYRIGHT
=========
=========
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment