generate functionFri, 03 Mar 2023
regex that fails if a string contains characters repeated three or more times in a row.
function noTriple(str) { if(str.match(/(.)\1{2,}/)) { return false } return true } noTriple("abcXXXabc")
Javascript
Generate More