NFA-based regex.