diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 22:34:12 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2010-01-15 22:34:12 -0800 |
commit | 690cbd142143ff75a7bbfe94bd7052c82770b179 (patch) | |
tree | 662c274c5e019e2ced0a492dff457f326324f790 | |
parent | eb06a172f3224cc92acff1dbd0fe24cd975c675d (diff) | |
download | txr-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-- | ChangeLog | 1 | ||||
-rw-r--r-- | txr.1 | 5 |
2 files changed, 5 insertions, 1 deletions
@@ -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> @@ -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 |