A Simple Regex Engine