Regular Expression tutorial
Due to the relationship between layout and space, this article only provides the PDF version:
Http://www.tracefact.net/document/Regular-Expression-Tutorial.pdf
The contents of this article are listed here:
-
- Introduction
-
- What is a regular expression?
-
- Preparations
-
- Match a single character
- Match A Fixed Single Character
- Match any single character
- Match the metacharacters
- Match character group
- Basic Character group syntax
- Use character ranges in character groups
- Negative character group
- Match special characters 7
- Match metacharacters
- Match null characters
- Match a specific character type 9
- Matching numeric type
- Match letters, numbers, and underscores
- Match null characters
- Match multiple characters
- Match one or more
- Matches zero or multiple characters
- Matches zero or one string.
- Matches a specified number of characters
- Match a fixed number of characters
- Match the number of characters within the specified range
- Greedy match and inert match
- Overview of greedy matching and inert matching
- Greedy matching process
- Inert matching process
- Two matching modes worth noting
-
- Matching Boundary
- Match word boundary
- Boundaries and their relativity
- Boundary Definition
- Relativity of boundaries
- Match non-word boundary
- Match text Boundary
- Match the beginning of a text
- Match the end of Text
-
- Matching sub-Mode
- Sub-Mode
- "Or" Match
- Use "or" to match in sub-Mode
- Nested submode
-
- Backward reference
- Understanding backward reference
- A common back-to-reference Application
- Forward references in. net
-
- Text replacement
- Use Back-to-reference for text replacement
- Highlight text
- Replace the phone number format
- Net text replacement
- Pre-check and non-get matching
- Understanding non-acquisition matching
- Forward pre-Query
- Reverse pre-Query
- Combination of forward and reverse pre-Query
- Negative positive and reverse pre-Query
- Negative positive pre-Query
- Negative Reverse pre-Query
-
- Summary