Regex & Xpath learn and cheetsheet

  1. Regex
    1. Basic
    2. Tricks
  2. Xpath
    1. Basic
    2. Tricks

Regex

Basic

Tricks

  • Match all chinese characters (匹配中文字符)

    easy format: ^.*[一-龥]

    Ignore /* or //: ^(?!/)(?!/\*).*[一-龥]

Xpath

Basic

Tricks