What flavour of regular expression is grep?

前端 未结 6 1278
花落未央
花落未央 2021-02-03 23:41

I\'m guessing it\'s not a Perl Compatible Regular Expression, since there\'s a special kind of grep which is specifically PCRE. What\'s grep most simil

6条回答
  •  后悔当初
    2021-02-04 00:29

    Grep is an implementation of POSIX regular expressions. There are two types of posix regular expressions -- basic regular expressions and extended regular expressions. In grep, generally you use the -E option to allow extended regular expressions.

提交回复
热议问题