Regular Expression, Regular Expression

Source: Internet
Author: User

Regular Expression, Regular Expression

Compared with windows operating systems, regular expressions are one of the few features that have advantages in ease of use. The tools that use regular expressions include awk, ed, egrep, grep, sed, and vi. However, these tools support different programs for regular expressions. awk and egrep support regular expressions, while grep does not support regular expressions, not only can we reduce the repetitive workload in actual operations, but it is also very helpful when reading shell scripts developed by others.


Regular expression syntax

What do you learn?

@ And "" belong to the scope of the program language and have nothing to do with regular expressions.
@ Indicates that the escape characters of the subsequent strings do not have the escape function.
"" String flag

^, *, $ 1L. You didn't see it ......
^ String start
* Quantity modification, indicating that the previous content can appear any time (0 times)
$ String end

Your regular expression match is a string of all numbers (the null string can also be used)

Regular Expressions indicate that regular expressions are everywhere on the Internet.
There are also many common Regular Expressions
You can search it yourself.

Regular expression syntax

What do you learn?

@ And "" belong to the scope of the program language and have nothing to do with regular expressions.
@ Indicates that the escape characters of the subsequent strings do not have the escape function.
"" String flag

^, *, $ 1L. You didn't see it ......
^ String start
* Quantity modification, indicating that the previous content can appear any time (0 times)
$ String end

Your regular expression match is a string of all numbers (the null string can also be used)

Regular Expressions indicate that regular expressions are everywhere on the Internet.
There are also many common Regular Expressions
You can search it yourself.

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.