If "^" is displayed in "[]", this expression does not match the characters in, for example, "/[^ a-z]/" does not match any lower-case letters! The regular expression provides the following default values:'[: Alnum:]' matches any letterAlphanumeric
If "^" appears in "[]", this expression does not match the characters appearing in "[]", such as "/[^a-z]/" does not match any lowercase letters! And the regular expression gives several default values for "[]", as follows:
' [: alnum:] ' matches
[: Alnum:]: character [: alpha:]: character [: digit:]: digit character [: graph:]: non-empty characters (non-space, control characters) [: lower:]: lowercase character [: cntrl:]: Control Character [: print:]: non-empty characters (including spaces)
A. Regular Expressions:Metacharacters is a character used to illustrate the meaning of a character expression, in short, a character used to describe a character.The regular expression re (Regular expression) is a string of characters consisting of
REGEXP_LIKE (matching)REGEXP_INSTR (included)REGEXP_REPLACE (replace)REGEXP_SUBSTR (extract)
For example, the expression of the mobile phone number: ^ [1] {1} [35] {1} [[: digit:] {9} $You can query customer information tables (tKHXX) that contain
Linux under wildcard characters commonly used to search for files Ls,findSymbolic meaning* represents any character of any length? Represents any single character[] represents any single character within the specified range[-] such as [A-z]
Before we introduce regular expressions, let's first popularize the three big text search tools grep, sed, awk under Linux. Their respective functions are as follows:grep:grep (supports regular expressions) Egrep (supports extended expression),
Linux regular expression-POSIX character class
POSIX standardizes the meanings of Regular Expression characters and operators. This standard defines two types of Regular Expressions: Basic Regular Expressions (BRE), grep and sed use this regular
In INTERNET programs, regular expressions are usually used to verify user input. After a user submits a FORM, it is not enough to determine whether the entered phone number, address, EMAIL address, and credit card number are valid.
What is a
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.