Regex engine made as a project for an university course