Could we do it with regexes?