The regular expression of the shell

Source: Internet
Author: User
Tags perl regular expression posix

Classification of regular Expressions:

1. Basic Regular Expressions (basic Regular expression also known as basic RegEx abbreviation Bres)

2. Extended Regular Expressions (Extended Regular expression also known as Extended RegEx abbreviation Eres), extended expressions have + 、?、 | and ()

3, Perl Regular expression (Perl Regular expression also called Perl RegEx abbreviation pres)

650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/14/6e1c2055f6438e357c6ed243764c814a.png "title=" The basic component of the shell regular expression. png "alt=" 6e1c2055f6438e357c6ed243764c814a.png "/>

650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/14/448e24b25d9c986a774b8eb1da5592a6.png "style=" float: none; "Title=" POSIX character class regular expression. png "alt=" 448e24b25d9c986a774b8eb1da5592a6.png "/>

650) this.width=650; "src=" Https://s5.51cto.com/oss/201711/14/6aebd8face57588e2ae24e0a0e1447de.png "style=" float: none; "Title=" POSIX character class regular expression extension read 1.png "alt=" 6aebd8face57588e2ae24e0a0e1447de.png "/>

650) this.width=650; "src=" Https://s1.51cto.com/oss/201711/14/70d6ce94c2a6b230ce8f7da4e96ec1a6.png "style=" float: none; "Title=" POSIX character class regular expression extension read 2.png "alt=" 70d6ce94c2a6b230ce8f7da4e96ec1a6.png "/>


650) this.width=650; "src=" Https://s4.51cto.com/oss/201711/14/e635dbfdb9e6b2e8526ac1be27e5d05b.png "style=" float: none; the "title=" meta-character regular the expression. png "alt=" E635dbfdb9e6b2e8526ac1be27e5d05b.png "/>


example, I can make up one more time.



Reference:

Http://man.linuxde.net/docs/shell_regex.html

This article is from "Zen Sword as" blog, please be sure to keep this source http://yanconggod.blog.51cto.com/1351649/1981856

The regular expression of the shell

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.