Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是正则表达式的新手,如果有人可以帮助我编写一个 JS 正则表达式来拒绝 3 个连续重复的字符,那就太好了。
正则表达式:
/(.)\1\1/
将匹配包含三个重复字符的字符串。