Why regexp is needed there?