Document directory
C {n}
C {m, n}
C {n ,}
*, + ,?
Greedy and non-greedy
Matching results of sub-regular expressions are not recorded
Forward pre-Query
?!
Global match, modifier g
Case-insensitive, modifier I
The end of the first line,
ObjectivesWithin 30 minutes, you can understand what a regular expression is and have some basic knowledge about it, so that you can use it in your own program or webpage.
How to use this tutorial
The most important thing is-Please give me 30
Finally, csdn was chosen to sort out the knowledge points published over the past few years. This article was migrated to csdn in parallel. Because csdn also supports the markdown syntax, it's awesome!
[Craftsman's water:
Objective of this articleIn 30 minutes you will understand what the regular expression is and have some basic knowledge of it so that you can use it in your own program or Web page.
How to use this tutorial
Most importantly-please give me 30
Regular ExpressionsEdit regular expressions, also known as formal representations, general representations (English: Regular Expression, often abbreviated as regex, RegExp, or re) in code, a concept of computer science. A regular expression uses a
By its very nature, a regular expression (or RE) is a small, highly specialized programming language that is embedded in Python and implemented through the RE module. With this small language, you can specify rules for the set of strings that you
Objectives
Within 30 minutes, you can understand what a regular expression is and have some basic knowledge about it, so that you can use it in your own program or webpage.How to use this tutorial
The most important thing is-Please give it to me30
PHP regular expression syntax reprinted from: http://blog.csdn.net/kkobebryant/article/details/267527
Basic regular expression syntax
First, let's take a look at two special characters: '^' and '$'. they are used to match the start and end of the
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.