Fundamentals of the ten-year OPS series-Linux
Zeng Lin
Contact: [Email protected]
Website: www.jplatformx.com
Copyright: Please do not reprint the article without permission
First, Introduction
In short, a regular expression is a symbolic notation used to recognize text patterns. To some extent, they are similar to the shell wildcard characters used when matching files and pathname, but they are more versatile. Regular expressions are supported by many command-line tools and most programming languages to solve problems with text operations. However, the regular expressions are slightly different between different tools and different programming languages, which makes things more cumbersome. For convenience, we limit the discussion of regular expressions to the POSIX standard, which covers most command-line tools.
Second, grep--text search
(021) Regular expression of Linux