4 ms·
> How else would you do it? Taking your question generally, I was curious to see what it might look like as a parser, since I find that regex a little hard to
by mjhoy 13y ago
> How else would you do it?
Taking your question generally, I was curious to see what it might look like as a parser, since I find that regex a little hard to read. Here's an implementation with Haskell's parsec:
https://gist.github.com/mjhoy/6751909 https://gist.github.com/mjhoy/6751909