Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-re2
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
uplex-varnish
libvmod-re2
Commits
5c259a91
Commit
5c259a91
authored
Oct 08, 2019
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README due to internal rst changes.
parent
07d677aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
README.rst
README.rst
+32
-32
No files found.
README.rst
View file @
5c259a91
...
...
@@ -314,7 +314,7 @@ turned off.
just after a newline, and ``$`` also matches just before a newline. Default is
**false**.
.. _
vmod_re2.regex
:
.. _
re2.regex()
:
new xregex = re2.regex(STRING pattern, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -352,7 +352,7 @@ Example::
never_capture=true);
}
.. _
vmod_re2.regex.match
:
.. _
xregex.match()
:
BOOL xregex.match(STRING)
-------------------------
...
...
@@ -366,7 +366,7 @@ Example::
call do_on_match;
}
.. _
vmod_re2.regex.backref
:
.. _
xregex.backref()
:
STRING xregex.backref(INT ref, STRING fallback)
-----------------------------------------------
...
...
@@ -433,7 +433,7 @@ Example::
set req.http.X-Domain = domainmatcher.backref(1);
}
.. _
vmod_re2.regex.namedref
:
.. _
xregex.namedref()
:
STRING xregex.namedref(STRING name, STRING fallback)
----------------------------------------------------
...
...
@@ -490,7 +490,7 @@ Example::
}
}
.. _
vmod_re2.regex.sub
:
.. _
xregex.sub()
:
STRING xregex.sub(STRING text, STRING rewrite, STRING fallback)
---------------------------------------------------------------
...
...
@@ -531,7 +531,7 @@ Example::
set req.http.X-Yada = bmatcher.sub(req.http.Host, "d");
}
.. _
vmod_re2.regex.suball
:
.. _
xregex.suball()
:
STRING xregex.suball(STRING text, STRING rewrite, STRING fallback)
------------------------------------------------------------------
...
...
@@ -567,7 +567,7 @@ Example::
set req.http.X-Yada = bmatcher.suball(req.http.Host, "d");
}
.. _
vmod_re2.regex.extract
:
.. _
xregex.extract()
:
STRING xregex.extract(STRING text, STRING rewrite, STRING fallback)
-------------------------------------------------------------------
...
...
@@ -601,7 +601,7 @@ Example::
set resp.http.X-UUCP = email.extract("boris@kremvax.ru", "\2!\1");
}
.. _
vmod_re2.regex.cost
:
.. _
xregex.cost()
:
INT xregex.cost()
-----------------
...
...
@@ -624,7 +624,7 @@ Example::
regex functional interface
==========================
.. _
vmod_re2.match
:
.. _
re2.match()
:
BOOL match(STRING pattern, STRING subject, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -662,7 +662,7 @@ Example::
call do_on_match;
}
.. _
vmod_re2.backref
:
.. _
re2.backref()
:
STRING backref(INT ref, STRING fallback)
----------------------------------------
...
...
@@ -704,7 +704,7 @@ Example::
set beresp.http.X-Capture = re2.backref(1);
}
.. _
vmod_re2.namedref
:
.. _
re2.namedref()
:
STRING namedref(STRING name, STRING fallback)
---------------------------------------------
...
...
@@ -741,7 +741,7 @@ Example::
set beresp.http.X-Capture = re2.namedref("foo");
}
.. _
vmod_re2.sub
:
.. _
re2.sub()
:
STRING sub(STRING pattern, STRING text, STRING rewrite, STRING fallback, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -791,7 +791,7 @@ Example::
set beresp.http.X-Yada = re2.sub(beresp.http.X-Sub-Letters,
bereq.http.Host, "d");
.. _
vmod_re2.suball
:
.. _
re2.suball()
:
STRING suball(STRING pattern, STRING text, STRING rewrite, STRING fallback, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -831,7 +831,7 @@ Example::
set beresp.http.X-Yada = re2.suball(beresp.http.X-Sub-Letters,
bereq.http.Host, "d");
.. _
vmod_re2.extract
:
.. _
re2.extract()
:
STRING extract(STRING pattern, STRING text, STRING rewrite, STRING fallback, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -872,7 +872,7 @@ Example::
set beresp.http.X-Query = re2.extract(beresp.http.X-Params, bereq.url,
"\1:\2");
.. _
vmod_re2.cost
:
.. _
re2.cost()
:
INT cost(STRING pattern, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL never_capture, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -906,7 +906,7 @@ Example::
std.log("simple cost=" + re2.cost("simple")
+ " complex cost=" + re2.cost("complex{1,128}"));
.. _
vmod_re2.set
:
.. _
re2.set()
:
new xset = re2.set(ENUM anchor, BOOL utf8, BOOL posix_syntax, BOOL longest_match, INT max_mem, BOOL literal, BOOL never_nl, BOOL dot_nl, BOOL case_sensitive, BOOL perl_classes, BOOL word_boundary, BOOL one_line)
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
...
...
@@ -968,7 +968,7 @@ Example::
perl_classes=true);
}
.. _
vmod_re2.set.add
:
.. _
xset.add()
:
VOID xset.add(STRING, [STRING string], [BACKEND backend], [BOOL save], [BOOL never_capture], [INT integer])
-----------------------------------------------------------------------------------------------------------
...
...
@@ -1045,7 +1045,7 @@ Example::
# See the documentation of the .string() and .backend() methods
# below for uses of the parameters string and backend for .add().
.. _
vmod_re2.set.compile
:
.. _
xset.compile()
:
VOID xset.compile()
-------------------
...
...
@@ -1066,7 +1066,7 @@ will fail.
See above for examples.
.. _
vmod_re2.set.match
:
.. _
xset.match()
:
BOOL xset.match(STRING)
-----------------------
...
...
@@ -1100,7 +1100,7 @@ Example::
call do_when_a_host_matched;
}
.. _
vmod_re2.set.matched
:
.. _
xset.matched()
:
BOOL xset.matched(INT)
----------------------
...
...
@@ -1144,7 +1144,7 @@ Example::
}
}
.. _
vmod_re2.set.nmatches
:
.. _
xset.nmatches()
:
INT xset.nmatches()
-------------------
...
...
@@ -1169,7 +1169,7 @@ Example::
+ " patterns from the set");
}
.. _
vmod_re2.set.which
:
.. _
xset.which()
:
INT xset.which(ENUM {FIRST, LAST, UNIQUE} select=UNIQUE)
--------------------------------------------------------
...
...
@@ -1232,7 +1232,7 @@ Examples::
# unsuccessful.
}
.. _
vmod_re2.set.string
:
.. _
xset.string()
:
STRING xset.string(INT n, ENUM select)
--------------------------------------
...
...
@@ -1368,7 +1368,7 @@ Examples::
# vcl_synth is implemented as shown above
.. _
vmod_re2.set.backend
:
.. _
xset.backend()
:
BACKEND xset.backend(INT n, ENUM select)
----------------------------------------
...
...
@@ -1424,7 +1424,7 @@ Example::
}
}
.. _
vmod_re2.set.integer
:
.. _
xset.integer()
:
INT xset.integer(INT n, ENUM select)
------------------------------------
...
...
@@ -1498,7 +1498,7 @@ Example::
}
}
.. _
vmod_re2.set.sub
:
.. _
xset.sub()
:
STRING xset.sub(STRING text, STRING rewrite, STRING fallback, INT n, ENUM select)
---------------------------------------------------------------------------------
...
...
@@ -1575,7 +1575,7 @@ Examples::
}
}
.. _
vmod_re2.set.suball
:
.. _
xset.suball()
:
STRING xset.suball(STRING text, STRING rewrite, STRING fallback, INT n, ENUM select)
------------------------------------------------------------------------------------
...
...
@@ -1631,7 +1631,7 @@ Example::
}
}
.. _
vmod_re2.set.extract
:
.. _
xset.extract()
:
STRING xset.extract(STRING text, STRING rewrite, STRING fallback, INT n, ENUM select)
-------------------------------------------------------------------------------------
...
...
@@ -1687,7 +1687,7 @@ Example::
}
}
.. _
vmod_re2.set.saved
:
.. _
xset.saved()
:
BOOL xset.saved(ENUM which, INT n, ENUM select)
-----------------------------------------------
...
...
@@ -1770,7 +1770,7 @@ Example::
# and which=REGEX by default.
}
.. _
vmod_re2.set.hdr_filter
:
.. _
xset.hdr_filter()
:
VOID xset.hdr_filter(HTTP, BOOL whitelist=1)
--------------------------------------------
...
...
@@ -1814,7 +1814,7 @@ Example::
black.hdr_filter(resp, false);
}
.. _
vmod_re2.quotemeta
:
.. _
re2.quotemeta()
:
STRING quotemeta(STRING, STRING fallback)
-----------------------------------------
...
...
@@ -1842,7 +1842,7 @@ Example::
re2.quotemeta("1.5-2.0?") == "1\.5\-2\.0\?"
re2.match(re2.quotemeta("1.5-2.0?"), "1.5-2.0?")
.. _
vmod_re2.version
:
.. _
re2.version()
:
STRING version()
----------------
...
...
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