The more modern “extended” regular expressions can often be used with modern Unix utilities by including the command line flag “-E”.
POSIX extended regular expressions are similar in syntax to the traditional Unix regular expressions, with some exceptions. The following metacharacters are added:
Metacharacter
Description
.
Matches any single character (many applications exclude newlines, and exactly which characters are considered newlines is flavor, character encoding, and platform specific, but it…
5. Posix扩展正则表达式
发布于