Regex for “Does not contain four or more repeated characters”

后端 未结 5 1124
盖世英雄少女心
盖世英雄少女心 2021-01-15 16:22

My experience with regular expressions is limited and I\'ve been reading various tutorials and posts on negation and negative lookahead, etc, but nothing seems to quite matc

5条回答
  •  既然无缘
    2021-01-15 16:57

    I think, use this regex .*(.).*\1+.* to matches existd repeated characters. But for four, depend on you.

    Good luck!

提交回复
热议问题