def is_app_name_valid(app_name):
 if re.match(VALID_APP_NAME_CHARS_REGEX, app_name):
  return True
 else:
  return False

def is_app_name_valid ( app_name ) : if re . match ( VALID_APP_NAME_CHARS_REGEX , app_name ) : return True else : return False
validates an application by checking if it contains certain characters .