From 4e1a5fbcb919d22a8674398ae1b71b5eef006603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bertrand=20N=C3=A9ron?= <bneron@pasteur.fr> Date: Sun, 4 Sep 2022 15:55:59 +0200 Subject: [PATCH] fix special pattern syntax for grep --- source/Unix/search_filter.rst | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/Unix/search_filter.rst b/source/Unix/search_filter.rst index 7290992..bb0825b 100644 --- a/source/Unix/search_filter.rst +++ b/source/Unix/search_filter.rst @@ -70,13 +70,13 @@ grep with Regular Expressions * **[]** bracket expressions: defines a set of characters * *[abc]* : matches character *"a"* or *"b"* or *"c"* * *[a-z]* : matches on character in the range from *"a"* to *"z"*, ie *"a"* or *"b"* ... or *"z"* - * *[:alnum:]* : matches any letter or numberic characters - * *[:alpha:]* : matches any letter - * *[:digit:]* : matches any number - * *[:lower:]* : matches any letter in range [a-z] - * *[:upper:]* : matches any letter in range [A-Z] - * *[:punct:]* : matches any punctuation character - * *[:space:]* : matches any space character (space, tab, ...) + * *[[:alnum:]]* : matches any letter or numberic characters + * *[[:alpha:]]* : matches any letter + * *[[:digit:]]* : matches any number + * *[[:lower:]]* : matches any letter in range [a-z] + * *[[:upper:]]* : matches any letter in range [A-Z] + * *[[:punct:]]* : matches any punctuation character + * *[[:space:]]* : matches any space character (space, tab, ...) * Anchoring. * **^** represent start of the string. * **$** represent end of the string. -- GitLab