Sign in
Log inSign up

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"

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct