The worst part is that as soon as he mentioned regular expressions I knew exactly what the problem was.<p>Regexes are powerful and useful but also dangerous.  People who don&#x27;t thoroughly understand them and try to get fancy often run into problems like this.  In general you shouldn&#x27;t be using them to parse a computer language anyway, it is something you should be using a tokenizer&#x2F;parser for.