January 15, 2012
Text Parsing with F#
I've always had a fear of parsing text. Strange since it's a basic programmer's task. I've always found it to be tedious and boring, and the resulting code is a jumbled mess of indexes and string parsing methods. I avoid it every chance I get.
And there's regex. The syntax is cryptic and difficult to remember. It's another thing I should know well, but, again, I avoid it.
Recently I decided to come to grips with this weakness and parse a text file containing information about TCP sockets in a TIME_WAIT status.
Read more