regular expression matching C++ code
http://leetcode.com/2011/09/regular-expression-matching.html