Open jens-duttke opened 5 years ago
I have a problem with the | operator and capturing groups in my regexp:
|
const MultiRegExp2 = require('multi-regexp2').default; const matches = new MultiRegExp2(new RegExp('(a)|(b)')).execForAllGroups('b', true); console.log(matches); // -> null
Normally the matches should looks like this: https://regex101.com/r/jn9DU9/1
I have a problem with the
|
operator and capturing groups in my regexp:Normally the matches should looks like this: https://regex101.com/r/jn9DU9/1