js built-in regular object

RegExpIs javascripta built-in object in. It is a regular expression.

RegExp.$1It is RegExpreferring to the first sub-match the regular expression matching (marked by parentheses) string, and so on, RegExp.$2,RegExp.$3,..RegExp.$99can have a total 99 matches

Guess you like

Origin blog.csdn.net/men_gqi/article/details/109702170