Added implementation of regexes using backtracking, however only gets the first result