DEV Community

Discussion on: What are your code smells and/or best practices with regular expressions?

Collapse
 
meanin profile image
Paweł Ruciński • Edited

Lately I was trying to get information about ftp paths for couple of directories. I implement catching needed directories using regular expressions. But this is not a common solution.

Despite the fact that I am a big fan of regex at all, I mainly use it to catch something in large documents. Mostly I try to use web solution like regex101 (I am not an author of this, but find it very useful).

Collapse
 
danidee10 profile image
Osaetin Daniel

Thumbs up for Regex 101. I don't think i can write Regular expressions without it...Lol

Collapse
 
pawelsalawa profile image
Pawel Salawa

For the same there is debuggex.com/ which I find more friendly and readable.

Thread Thread
 
danidee10 profile image
Osaetin Daniel

Wow! debuggex seems to be better. Visualization is really important (Not just for Regex).

Thanks Pawel

Collapse
 
allanjeremy profile image
Allan N Jeremy

Thanks for the link. Definitely a life saver