DEV Community

Discussion on: What languages and tools do you use that spark joy?

Collapse
 
robole profile image
Rob OLeary • Edited

I wouldn't rate regex as joyful, but I like it. I dont feel the dread that some people have for regex! For some tasks, it is great, and packs a lot of punch. I think a lot of DSLs have a similar effect on people.

I wrote a post recently about calculating the reading time of a post, and regex shrinks the code dramatically, no need to do any parsing of html.