C++ port of https://github.com/VerbalExpressions