Problem with converting the RegExp php to javascript | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 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 ответ
0
Its the same
17th Dec 2020, 1:49 PM
Med Amine Fh
Med Amine Fh - avatar