The [@@match]() method retrieves the matches when matching a string against a regular expression. 语法 regexp[Symbol.match](str) 参数 str match 的目标参数是String 返回值 match 方法会返回一个数组,它包括整个正则表达式匹配到的所有字符和通过捕获组捕获到的结果,如果没有匹配到返回null 描述 This me...
The matchAll() method of the Cache interface returns a Promise that resolves to an array of all matching requests in the Cache object. Syntax cache.matchAll(request,{options}).then(function(response) { //do something with the response array }); Returns a Promise that resolves to an array...
To replace or remove characters that don't match a regex, call the `replace()` method on the string passing it a regular expression.