Every line of 'regex capture everything between' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
92 static CAPTURE_REFS_G(): RegExp { 93 return cloneRegexp(/\$\{([^}]+)\}/g); 94 }
96 readRegexReturnCapture_(regex, index) { 97 if (this.atEnd()) { 98 return null; 99 } 100 101 const ret = this.readRegex(regex); 102 if (!ret) { 103 return null; 104 } else { 105 return ret[index]; 106 } 107 }
12 function matchAll(str) { 13 return new RegExp(`^${str}$`); 14 }