Problem with converting the RegExp php to javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
0
Its the same
17th Dec 2020, 1:49 PM
Med Amine Fh
Med Amine Fh - avatar