📜  正则表达式 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:25.198000             🧑  作者: Mango

代码示例6
/findme/
Characters \, ., \cX, \d, \D, \f, \n, \r, \s, \S, \t, \v, \w, \W, \0, \xhh, \uhhhh, \uhhhhh, [\b]    
Assertions     ^, $, x(?=y), x(?!y), (?<=y)x, (?x), x|y, [xyz], [^xyz], \Number    
Quantifiers *, +, ?, x{n}, x{n,}, x{n,m}
Unicode \p{UnicodeProperty}, \P{UnicodeProperty}
javascript
let re = /findme/
let defaults = new RegExp('compiled'); 
defaults = { dotAll: false, flags: "", global: false, ignoreCase: false, falselastIndex: 0, multiline: false, source: "abc", sticky: false, unicode: false}