We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var str = 'aaa\nzzzbbbxxx\nttt' var testCasesRegexp3 = named(/(:(.|\r|\n)*?)(:bbb)/ig); var matched = testCasesRegexp3.exec(str); if(matched){ console.log('g1:'+matched.capture('g1')); console.log('g2:'+matched.capture('g2')); }
Prints g1:aaa\nzzz g2:z
Maybe I got things wrong but it should g1:aaa\nzzz g2:bbb
The text was updated successfully, but these errors were encountered:
No branches or pull requests
var str = 'aaa\nzzzbbbxxx\nttt'
var testCasesRegexp3 = named(/(:(.|\r|\n)*?)(:bbb)/ig);
var matched = testCasesRegexp3.exec(str);
if(matched){
console.log('g1:'+matched.capture('g1'));
console.log('g2:'+matched.capture('g2'));
}
Prints
g1:aaa\nzzz
g2:z
Maybe I got things wrong but it should
g1:aaa\nzzz
g2:bbb
The text was updated successfully, but these errors were encountered: