Special characters in regular expressions
Character implication
\ As a turn, that is, the characters usually after "\" are not interpreted in the original sense, such as the/b/matching character "B", when B is preceded by a backslash/\b/, to
The regular expression is a regular expression. It seems that English is better understood than Chinese, that is, the regular expression is checked for non-conforming characters !! Regular expressions have a powerful and complex object RegExp, which
Regular
Regular expression is regular expression, it seems that English is better than Chinese understand more, is to check expression characters do not conform to the rules!! Regular expressions have a very powerful and complex object regexp,
The regular expression is a regular expression. It seems that English is better understood than Chinese, that is, checking expression charactersNot compliant !! Regular expressions have a very powerful and complex object Regexp. In javascript1.2.Let'
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,
Regular expressions can:
• Test a pattern for a string. For example, you can test an input string to see if there is a phone number pattern or a credit card number pattern in the string. This is called data validation
• Replace text. You can use a
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
Linux regular expressions-Basic Regular Expressions (based on grep)
Linux regular expression:
In short, regular expressions are a set of rules and methods defined to process a large number of strings. For example, suppose @ represents 123456 ,!
Regular Expressions in detail (II.)
The following are new objects that are not regular expressions see the corresponding JavaScript object's Properties $_ Property Reference Input $* property
Reference Multiline $& Property Reference Lastmatch $+
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.