From 1a0c86e002c341de42194ba0b1a9bea869d14908 Mon Sep 17 00:00:00 2001 From: tripleee Date: Tue, 1 Nov 2022 05:13:54 +0200 Subject: [PATCH] grep: slashes do not need backslashes (#1899) --- grep.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grep.md b/grep.md index c9dc9b021..5d69f3e2e 100644 --- a/grep.md +++ b/grep.md @@ -86,7 +86,7 @@ grep -E "foo|oof" bar.txt # match anything that resembles a URL in # foo.txt and only print out the match -grep -oE "https?:\/\/((\w+[_-]?)+\.?)+" foo.txt +grep -oE "https?://((\w+[_-]?)+\.?)+" foo.txt # can also be used with pipes: # match any line that contains "export" in