0

So, this regex means duplicate words: "\b(\w+)(\s+\1\b)+"

but what does the '+' do after the '\w'? Wouldn't it still identify duplicate words without the '+'? Since the second parenthesis/group is the one identifying any repeats of the previous word.

Kerage Chan
  • 106
  • 1
  • 8

0 Answers0