Regex vs. Lexing
dev pl howtoWhen All You Have is Regex, Everything is a Pattern
I often see developers use regular expressions in the process of parsing languages such as DSL, data serialization formats, and config file formats. Regular expressions are powerful, concise, supported in lots of languages as a sort of sub-language, and they are already known to many programmers, so they can be a good solution here. Obviously some people are finding success using them this way.
Read more...