Hacker News new | ask | show | jobs
by Kabie 1438 days ago
Interestingly enough, I find myself rarely using regex with Elixir. Thanks to erlang's excellent pattern matching syntax for binary.
2 comments

I either use pattern matching for easy things or reach for nimble parsec.
Regex should be kept to a minimum in an API because it is a known DOS attack vector. Sounds a bit worrying if they also have parameters that affect execution time.