7 slow and painful deaths by regexp

Catch more than half of these issues by testing, auditing and code reviews

My article about regexp on PullReview‘s blog is there to encourage

— to learn them before actually using them.
— to learn them before actually learning them the “hard” way in production
— to take a look at alternative to implement the feature without regular expressions (or the one used by your stdlib, language)
— if you use regex, understand the risks
— if you use regex, please write tests for you and your coworkers
— if you use regex, please audit your code (automatically and by human code review)

Advertisements

, , ,

  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: