Problem with converting the RegExp php to javascript | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 3

Problem with converting the RegExp php to javascript

Hi everyone, I found a RegExp pattern which is for php and it doesn't work for javascript. but I need it for javascript. I need help with converting it. Can somebody please help me? It is: ^(?!.*\.\.)(?!.*\.$)[^\W][\w.]{1,29}$

17th Dec 2020, 12:34 PM
Maede
Maede - avatar
1 Antwort
0
Its the same
17th Dec 2020, 1:49 PM
Med Amine Fh
Med Amine Fh - avatar