From 9b352a96e064d5d201e2d448f9650a0dd9d67b68 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Sat, 8 Oct 2011 10:55:45 -0700 Subject: * 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. --- ChangeLog | 6 ++++++ txr.1 | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 0263247e..12f53050 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-10-08 Kaz Kylheku + + * 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 * match.c (match_line): Skip directive bugfix. If skip is the 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 -- cgit v1.2.3