Exactly. Isn't this as bad an idea as trying to parse HTML with regular expressions? [1]
[1]: http://stackoverflow.com/questions/1732348/regex-match-open-...
[1]: http://stackoverflow.com/questions/1732348/regex-match-open-...
(I still think it's not a great idea. Being regular isn't necessarily the same as being parseable with a maintainable regex.)