DEV Community

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

Collapse
 
mikesimons profile image
Mike Simons

Use named capture groups.
It makes it so much easier to correlate results with the matching pattern.

Collapse
 
craser profile image
Chris Raser

I have no idea how I didn't know about those before. You have changed my life.