Fix nit in RST, update README.rst

parent 5eeeab8a
...@@ -24,15 +24,15 @@ SYNOPSIS ...@@ -24,15 +24,15 @@ SYNOPSIS
import re; import re;
# object interface # object interface
new <obj> = re.regex(STRING, [, INT limit] [, INT limit_recursion] new <obj> = re.regex(STRING [, INT limit] [, INT limit_recursion]
[, BOOL forbody]) [, BOOL forbody])
BOOL <obj>.match(STRING, [, INT limit] [, INT limit_recursion]) BOOL <obj>.match(STRING [, INT limit] [, INT limit_recursion])
STRING <obj>.backref(INT [, STRING fallback]) STRING <obj>.backref(INT [, STRING fallback])
BOOL <obj>.match_body(req_body | bereq_body | resp_body, BOOL <obj>.match_body(req_body | bereq_body | resp_body
[, INT limit] [, INT limit_recursion]) [, INT limit] [, INT limit_recursion])
# function interface # function interface
BOOL re.match_dyn(STRING, [, INT limit] [, INT limit_recursion]) BOOL re.match_dyn(STRING [, INT limit] [, INT limit_recursion])
STRING re.backref_dyn(INT [, STRING fallback]) STRING re.backref_dyn(INT [, STRING fallback])
STRING re.version() STRING re.version()
...@@ -201,6 +201,7 @@ BOOL xregex.match_body(ENUM which, INT limit, INT limit_recursion) ...@@ -201,6 +201,7 @@ BOOL xregex.match_body(ENUM which, INT limit, INT limit_recursion)
) )
.. _multi segment matching: https://pcre.org/current/doc/html/pcre2partial.html#SEC4 .. _multi segment matching: https://pcre.org/current/doc/html/pcre2partial.html#SEC4
Description Description
Like `xregex.match()`_, except that it operates on the named body. Like `xregex.match()`_, except that it operates on the named body.
......
...@@ -168,6 +168,7 @@ $Method BOOL .match_body(ENUM {req_body, bereq_body, resp_body } which, ...@@ -168,6 +168,7 @@ $Method BOOL .match_body(ENUM {req_body, bereq_body, resp_body } which,
INT limit=0, INT limit_recursion=0) INT limit=0, INT limit_recursion=0)
.. _multi segment matching: https://pcre.org/current/doc/html/pcre2partial.html#SEC4 .. _multi segment matching: https://pcre.org/current/doc/html/pcre2partial.html#SEC4
Description Description
Like `xregex.match()`_, except that it operates on the named body. Like `xregex.match()`_, except that it operates on the named body.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment