Hola Foro!
Tengo un inconveniente al utilizar regex.
Debo lograr en "type=text", no existan más de dos caracteres consecutivos. Es decir, el campo text admite "Jennifer", pero no "Jennnifer"
Aggradezco su ayuda
Hola Foro!
Tengo un inconveniente al utilizar regex.
Debo lograr en "type=text", no existan más de dos caracteres consecutivos. Es decir, el campo text admite "Jennifer", pero no "Jennnifer"
Aggradezco su ayuda
This is not easy to do with arbitrary text. What high-level problem are you trying to solve? Are you actually doing this with names or some kind of ID?
Hola.
Actualmente estoy utilizando este regex (.,'^([a-zA-ZÁ-ÿá-ÿ ñÑ 0-9]){3,100}$'). Es para texto normal, (un type text). Quiero evitar palabras no coherentes como : 'aaa' o ' bbb'. Si se pudiera seria fenomenal
I'm not a regex expert but Chat GPT says that this should work well: ^(?!.*([a-zA-Z0-9])\1\1)[a-zA-Z0-9]+$