Simple NFA-based regular expression / string matching library