Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Kabie
· 4y ago · 0 comments
Interestingly enough, I find myself rarely using regex with Elixir. Thanks to erlang's excellent pattern matching syntax for binary.
Comments
[–]
throwawaymaths
4y ago
I either use pattern matching for easy things or reach for nimble parsec.
[–]
AtNightWeCode
4y ago
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.