Modify 'valid?'. Use single regex.