summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2010-01-15 22:34:12 -0800
committerKaz Kylheku <kaz@kylheku.com>2010-01-15 22:34:12 -0800
commit690cbd142143ff75a7bbfe94bd7052c82770b179 (patch)
tree662c274c5e019e2ced0a492dff457f326324f790
parenteb06a172f3224cc92acff1dbd0fe24cd975c675d (diff)
downloadtxr-690cbd142143ff75a7bbfe94bd7052c82770b179.tar.gz
txr-690cbd142143ff75a7bbfe94bd7052c82770b179.tar.bz2
txr-690cbd142143ff75a7bbfe94bd7052c82770b179.zip
* txr.1: Get rid of parens from regex operator descriptions.
Correct wrong text: all operators can take an empty regex. Clarify escaping rules within a character class.
-rw-r--r--ChangeLog1
-rw-r--r--txr.15
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ae3fbd6b..2d2f1e5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* txr.1: Get rid of parens from regex operator descriptions.
Correct wrong text: all operators can take an empty regex.
+ Clarify escaping rules within a character class.
2010-01-15 Kaz Kylheku <kkylheku@gmail.com>
diff --git a/txr.1 b/txr.1
index d0d1735b..90259fd3 100644
--- a/txr.1
+++ b/txr.1
@@ -637,7 +637,10 @@ A ] or - can be used within a character class, but must be escaped
with a backslash. Two backslashes code for one backslash. So
for instance [\e[\e-] means match a [ or - character, [^^] means match
any character other than ^, and [\e^\e\e] means match either a ^ or a
-backslash.
+backslash. Regex operators such as *, + and & appearing in a character
+class represent ordinary characters. The characters -, ] and ^ occuring outside
+of a character class are ordinary. Unescaped / characters can appear
+within a character class.
.IP empty
An empty string is a regular expression. It matches the set of texts
consisting of the empty string; i.e. it matches no characters. The empty