Home >Web Front-end >JS Tutorial >Basic rules in Linux

Basic rules in Linux

微波
微波Original
2017-06-28 13:52:241164browse

This article mainly introduces the relevant information on the basic regular expressions in Linux. It is very good and has reference value. Friends who need it can refer to it. Match the following

characters:

. : Match any single character

[] : Match any single character within the specified range;

## This [^]: Matching any single character outside the formation [: Digit:] LOWER Upper Alpha Alnum Space

##:: Use it to specify the characters that appear, the characters to the number of times, Used to limit the number of occurrences of the preceding character                                                                                                                 


                                                                                                                                                                                                                                                             . ,

                                                                                                                                                                                                                                          . \{0,n\}: at least n times


\{m,\}: at least m times

Position anchoring:


^: Beginning of line anchor: used for the far left side of the pattern

                    $: End of line anchoring: used for the far right side of the pattern

^Pattern: For Pattern

# ^$: blank line

^[[: space:]]:

# words: non -
Special characters

Continuous characters (

character
) all become words

# \ & lt; , used for the left side of the word pattern

\> or \b: word-suffix anchor, used for the right side of the word pattern

                                                                                                                                                                          Match complete words

The above are the basic regular expressions in Linux introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message and the editor will reply to you in time. . I would also like to thank everyone for your support of the Script House website!

The above is the detailed content of Basic rules in Linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn