My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Regex for checking "non-repetitive characters not more than 2 consecutive time"

Default profile photo
Anonymous
·Feb 18, 2020

Question is right to answer

0%

Wrong question

100%

2 votes · Closed

Need a regular expression that should work for below mentioned formats

  1. Acceptable Format: "A123bcd456", "Abcd12345678", "AAbcdd123456"

  2. Non-acceptable Format: "AAbbcc123456", "AAAbbccc1234", "AAbcdd123444"