JSFiddle - React, Tailwind, and code Playground

by Pedro Marcano

JavaScript

var expresion = /(?=(\d{3}[0-9a-zA-Z])){8,30}$/g;
expresion = /([0-9a-zA-Z\_\\])\1{3,}/;


var texto = "*14324";

alert(expresion.test(texto));