Regular Expressions are powerful things, but they are difficult to learn when your main objective is to produce business-critical information systems and you must also keep up to date with the latest .net features, the latest browers and quirks, the latest version of CSS, new Javascript libraries.....I think you get the picture. It's something else to learn. This is the reason we google our parsing requirements and re-use existing regular expressions, without actually understanding them.
I had a couple of requirements of my own and couldn't solve the more complex parsing with regular expressions. So, I've knocked up a light-weight string parser to satisfy my needs. I thought I'd share it with you. Here's the class in C#:
Hello. I'm Mark Graham. In no particular order, I love creativity, fine-art/ graphics/ photography, innovativeness, my partner, my kids, guitar music, Joe Satriani(no, not in that way), .net, programming, the web, golf, coffee in, coffee out, my blog, my ambition
Code and Rock is a new methodology that I designed. You basically start up Visual Studio, then slap on a rocking track. Snare that spacebar! Try it with this one from Joe Satriani...
0 comments:
Post a Comment