summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2018-07-02 14:52:43 +1000
committerDamien George <damien.p.george@gmail.com>2018-07-02 14:55:05 +1000
commit41226e9a18dbde13b7d83495bb2d5c8fc9170e0a (patch)
tree828f200e33237f1e2c5435ab4f6c9c95785150d6
parent4727bd1db80e3c08e1ecb611ce26238f89ff94cc (diff)
downloadmicropython-41226e9a18dbde13b7d83495bb2d5c8fc9170e0a.tar.gz
micropython-41226e9a18dbde13b7d83495bb2d5c8fc9170e0a.zip
docs/ure: Document some more supported regex operators.
-rw-r--r--docs/library/ure.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/library/ure.rst b/docs/library/ure.rst
index 69d78d1049..6f9094028d 100644
--- a/docs/library/ure.rst
+++ b/docs/library/ure.rst
@@ -20,14 +20,19 @@ Supported operators are:
including negated sets (e.g. ``[^a-c]``).
``'^'``
+ Match the start of the string.
``'$'``
+ Match the end of the string.
``'?'``
+ Match zero or one of the previous entity.
``'*'``
+ Match zero or more of the previous entity.
``'+'``
+ Match one or more of the previous entity.
``'??'``
@@ -36,6 +41,7 @@ Supported operators are:
``'+?'``
``'|'``
+ Match either the LHS or the RHS of this operator.
``'(...)'``
Grouping. Each group is capturing (a substring it captures can be accessed