Regular Expression

  1. 用來比對某個字串是否符合Regular Expression的規則,可以用在mongodb 中進行query

  2. 用來獲取某個字串的部份內容

比對 examples:

(2|3) (*)

比對字串是否為2 * 或是 3 *

方便測試Regular Expression 的網站

https://regex101.com/

Last updated

Was this helpful?