summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--txr.19
2 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 1e05ce0e..ae3fbd6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
2010-01-15 Kaz Kylheku <kkylheku@gmail.com>
* txr.1: Get rid of parens from regex operator descriptions.
+ Correct wrong text: all operators can take an empty regex.
2010-01-15 Kaz Kylheku <kkylheku@gmail.com>
diff --git a/txr.1 b/txr.1
index b9b4b510..d0d1735b 100644
--- a/txr.1
+++ b/txr.1
@@ -644,10 +644,11 @@ consisting of the empty string; i.e. it matches no characters. The empty
string can appear alone as a full regular expression (for instance the
.B txr
syntax @// with nothing between the slashes)
-and can also be used as a subexpression term for some operators. The
-expression a| means (a|): match either a, or nothing. It's not possible to
-pass the empty regex to some operators; for instance (*) is a syntax error,
-not the * operator with an empty string on the left.
+and can also be passed as a subexpression to operators, though this
+may require the use of parentheses to make the empty regex explicit. For
+example, the expression a| means: match either a, or nothing. The forms
+* and (*) are syntax errors; the correct way to match the empty expression
+zero or more times is the syntax ()*.
.IP (R)
If R is a regular expression, then so is (R).
The contents of parentheses denote one regular expression unit, so that for