DEV Community

Discussion on: How do you feel about regex?

Collapse
 
steelwolf180 profile image
Max Ong Zong Bao

Hmmm...I would advise to use it only for search, data scrapping and data validation/cleaning purposes. Beyond that I won't advise anyone to use it unless there's a real reason to use it like to reduce the complexity of your code for the above purposes.

Plus there's tons of websites that allows you to copy and paste regex for specific uses depending on your language of choice or regex engine you are using.

To me it's sort of like Leetcode, readability is a issue unless you had learnt it but beyond that it kind of being too clever with your code.