Closed vyushin closed 3 years ago
XRegExp.matchRecursive
in its current form doesn't work with identical left and right delimiters. That said, you can adapt your task so the positions your delimiters match are not identical with something like this:
const str = '"Hello, "World"!"';
XRegExp.matchRecursive(str, '"(?=\\w)', '"(?!\\w)', 'g');
// -> ['Hello, "World"!']
XRegExp version: 4.4.0
I'm trying provide string with double quotes to
matchRecursive
methodthis throws an error:
The same case works with other symbols. For example:
How can I use matchRecursive to find matches in string containing double quotes?