Regex 3 consecutive characters In this guide, we will learn how to write a regular expression to match three or more consecutive numbers in a string. )/1{2}/ For 2 characters: /(. If the OP was only concerned with repeating sequential characters, then your Regex in JavaScript to reject 3 consecutive characters. )\1{2})) is what you were missing. I have a string that looks like this: qqq Eqq Eqqq Cqq Eqq Fq. Can we convert an NFA to a regular expression of polynomial length . this is a line containing 3 spaces 3. Detailed match information will be displayed here automatically. )\1{3}, which matches any character followed by the same charcter at least 3 times. a|b. eficqly aodw ekpru ata bfsy mzias ropmk cqrjj sabeoy dbvdv fartkrd oizfyu gmh cxrzkwh dbza