Closed
Description
node.js v14.4.0
import XRegExp from 'xregexp';
var repeatedWords = XRegExp('\\b(?<word>[a-z]+)\\s+\\k<word>\\b', 'gi');
console.dir(repeatedWords.exec('The the test data'))
console.dir('The the test data'.match(repeatedWords))
[
'The the',
'The',
index: 0,
input: 'The the test data',
groups: undefined
]
[ 'The the' ]
Metadata
Metadata
Assignees
Labels
No labels