匹配连续出现的重复单词(不限次数):
/(\b\S+\b) (\b\1\b( \b\1\b)*)/gi
Replaced with:
$1 <strong>$2</strong>
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
匹配连续出现的重复单词(不限次数):
/(\b\S+\b) (\b\1\b( \b\1\b)*)/gi
Replaced with:
$1 <strong>$2</strong>
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions