Generation

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

Want to kickstart your project?Use the new AI Studio to create your code