From a93220972f8130732c8cd0267c0b14db77ac19ea Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 11 May 2021 12:38:58 -0700 Subject: Overhaul of |-word boundaries (| is deprecated), performance improvements for repeating matches, tweaks to the logic of word vs. id --- bp.1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bp.1') diff --git a/bp.1 b/bp.1 index 8262653..d35a9df 100644 --- a/bp.1 +++ b/bp.1 @@ -116,9 +116,6 @@ Zero or more whitespace characters (specifically, spaces and tabs) .B __ Zero or more whitespace or newline characters -.B | -A word boundary - .B "foo" .B 'foo' The literal string \fIstring\fR. Escape sequences are not allowed. @@ -237,7 +234,7 @@ Find files ending with ".c" and replace the extension with ".h" .TP .B -bp -p '|"foobar"| parens' my_file.py +bp -p '{foobar} parens' my_file.py Find the literal string \fB"foobar"\fR, assuming it's a complete word, followed by a pair of matching parentheses in the file \fImy_file.py\fR -- cgit v1.2.3