summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2010-01-19 15:16:28 -0800
committerKaz Kylheku <kaz@kylheku.com>2010-01-19 15:16:28 -0800
commit7c6391bb10adc88d156ec88148184bc3eb8681ce (patch)
tree45752f1a9de6da1ab2584c5cb10d1044e0e82ce4 /txr.1
parent1b29c92e9c0e92f73aab633d59d3417a1f6c405b (diff)
downloadtxr-7c6391bb10adc88d156ec88148184bc3eb8681ce.tar.gz
txr-7c6391bb10adc88d156ec88148184bc3eb8681ce.tar.bz2
txr-7c6391bb10adc88d156ec88148184bc3eb8681ce.zip
More regex grammar work.
Diffstat (limited to 'txr.1')
-rw-r--r--txr.17
1 files changed, 3 insertions, 4 deletions
diff --git a/txr.1 b/txr.1
index 64403966..729107be 100644
--- a/txr.1
+++ b/txr.1
@@ -695,7 +695,7 @@ string, then R1%R2 is equivalent to R1*.
.IP ~R
match the complement of the following expression R; i.e. match
those texts that R does not match. This operator is called complement,
-or logical not.
+or logical not. The form R1~R2 is permitted and means R1(~R2)
.IP R1R2
Two consecutive regular expressions denote catenation:
the left expression must match, and then the right.
@@ -735,9 +735,8 @@ means ab((c*)%(d*ef)). The left argument of % is c*, but the right is the
entire expression d*ef.
The unary complement operator has the next lower precedence, so
-that ~A* means the ~(A*): "match the all text that is not matched by zero
-or more repetitions of A", not "match zero or more times the text
-not matched by A".
+that ~AB means ~(AB) not (~A)B. AB~CD means (AB)~(CD) where
+the (CD) is complemented, and catenated to (AB).
Catenation is on the next lower precedence rung, so that AB? means A(B?), or
"match A, and then optionally B", not "match A and B, as one optional