Add temporary K patch: regular expressions
Add regression test suite