diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 22:30:11 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 22:30:11 -0800 |
commit | eb06a172f3224cc92acff1dbd0fe24cd975c675d (patch) | |
tree | cd6d246484141ab2e0ec8caf8e9c901173f47b2e | |
parent | 4bc0b761c4661045d06406adf2f9b68a821364a2 (diff) | |
download | txr-eb06a172f3224cc92acff1dbd0fe24cd975c675d.tar.gz txr-eb06a172f3224cc92acff1dbd0fe24cd975c675d.tar.bz2 txr-eb06a172f3224cc92acff1dbd0fe24cd975c675d.zip |
* txr.1: Get rid of parens from regex operator descriptions.
Correct wrong text: all operators can take an empty regex.
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | txr.1 | 9 |
2 files changed, 6 insertions, 4 deletions
@@ -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> @@ -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 |