-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
like next line RegExp, which with repeat symbol ( + or * ), it will be wrong
/(ba)+.(a*)/
regexp.execForAllGroups('bababaaaaa', true);
matches: [ { match: 'ba', start: 0, end: 2 },
{ match: 'aaa', start: 3, end: 6 } ]
I think the regexp should change to /((ba)+).(a*)/ when calculate the next match position
Metadata
Metadata
Assignees
Labels
No labels