summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-08 10:55:45 -0700
committerKaz Kylheku <kaz@kylheku.com>2011-10-08 10:55:45 -0700
commit9b352a96e064d5d201e2d448f9650a0dd9d67b68 (patch)
tree1041952147ebe0ea7b46977571846a9ec3333100
parent6926c639bd4df81a5144b1c87cf274163f0293c2 (diff)
downloadtxr-9b352a96e064d5d201e2d448f9650a0dd9d67b68.tar.gz
txr-9b352a96e064d5d201e2d448f9650a0dd9d67b68.tar.bz2
txr-9b352a96e064d5d201e2d448f9650a0dd9d67b68.zip
* txr.1: Augment example of @/.*/ being used to skip to the
end of the line with @(skip) which is now better style, since it avoids reaching for regexes.
-rw-r--r--ChangeLog6
-rw-r--r--txr.15
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0263247e..12f53050 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2011-10-08 Kaz Kylheku <kaz@kylheku.com>
+ * txr.1: Augment example of @/.*/ being used to skip to the
+ end of the line with @(skip) which is now better style,
+ since it avoids reaching for regexes.
+
+2011-10-08 Kaz Kylheku <kaz@kylheku.com>
+
* match.c (match_line): Skip directive bugfix. If skip is the
last item on the line, it must match the whole line by returning
success.
diff --git a/txr.1 b/txr.1
index d104be0d..84b73a21 100644
--- a/txr.1
+++ b/txr.1
@@ -362,6 +362,11 @@ regular expression @/.*/ can be used. Example:
In this example, the query matches, since the regular expression
matches the string "of data". (See Regular Expressions section below).
+Another way to do this is:
+
+ Query: I can carry nearly eighty gigs@(skip)
+
+
.SS Special Characters in Text
Control characters may be embedded directly in a query (with the exception of