DEV Community


Discussion on: Regex - underrated or overHATED? Part 1/ 3

moopet profile image
Ben Sinclair

That first, "random" example you gave is a poor one because it's written badly. You wouldn't need to escape most of those characters when they're in a character class, and the whole thing would look less like a zebra!

vinicius77 profile image
Vinicius Cerqueira Bonifácio Author

Hi, Ben. Thanks for your comment. :)

It is indeed a very poor example but I really meant random. I had just googled "regex", "stackoverflow" and "javascript" and that was the first result that showed up.

I have connections neither with the person who created the question nor with the people who answered it. 😉 For that reason I have included the source.

From now on I'll always see that example in particular as a zebra. 🦓

Thanks for that. 🤣