Where is the regex version? Isn't this just a type check issue?