Regex to NFA converter works.