Regular Expression tutorial

Source: Internet
Author: User
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
    1. Match A Fixed Single Character
    2. Match any single character
    3. Match the metacharacters
    4. Match character group
      1. Basic Character group syntax
      2. Use character ranges in character groups
      3. Negative character group
    5. Match special characters 7
      1. Match metacharacters
      2. Match null characters
      3. Match a specific character type 9
        1. Matching numeric type
        2. Match letters, numbers, and underscores
        3. Match null characters
  • Match multiple characters
    1. Match one or more
    2. Matches zero or multiple characters
    3. Matches zero or one string.
    4. Matches a specified number of characters
      1. Match a fixed number of characters
      2. Match the number of characters within the specified range
    5. Greedy match and inert match
      1. Overview of greedy matching and inert matching
      2. Greedy matching process
      3. Inert matching process
      4. Two matching modes worth noting
  • Matching Boundary
    1. Match word boundary
    2. Boundaries and their relativity
      1. Boundary Definition
      2. Relativity of boundaries
    3. Match non-word boundary
    4. Match text Boundary
      1. Match the beginning of a text
      2. Match the end of Text
  • Matching sub-Mode
    1. Sub-Mode
    2. "Or" Match
    3. Use "or" to match in sub-Mode
    4. Nested submode
  • Backward reference
    1. Understanding backward reference
    2. A common back-to-reference Application
    3. Forward references in. net
  • Text replacement
    1. Use Back-to-reference for text replacement

      1. Highlight text
      2. Replace the phone number format
    2. Net text replacement
  • Pre-check and non-get matching
    1. Understanding non-acquisition matching
    2. Forward pre-Query
    3. Reverse pre-Query
    4. Combination of forward and reverse pre-Query
    5. Negative positive and reverse pre-Query
      1. Negative positive pre-Query
      2. Negative Reverse pre-Query
  • Summary

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.