Introduction to regular expressions-PHP Tutorial

Source: Internet
Author: User
Regular expression introduction. 1. if a regular expression has never been used before, it may be unfamiliar with this term and concept. However, they are not as novel as you think. Recall 1. Regular expression
If you have never used a regular expression, you may not be familiar with this term or concept. However, they are not as novel as you think.
Remember how to find files on the hard disk. Are you sure you want to use? And * characters to help find the file you are looking .? In the character matching file name
A single character, while * matches one or more characters. A file such as 'data ?. The following files can be found in the dat mode:
Data1.dat
Data2.dat
Datax. dat
DataN. dat
If "*" is used instead? Characters to expand the number of files found. 'Data *. dat 'can match all the following file names:
Data. dat
Data1.dat
Data2.dat
Data12.dat
Datax. dat
DataXYZ. dat
Although this file search method is certainly very useful, it is also very limited .? And * the limited capabilities of wildcards allow you to have an overview of what a regular expression can do.
But regular expressions are more powerful and flexible.


If the regular expression is not used before, the term and concept may be unfamiliar. However, they are not as novel as you think. Think back...

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.