code: def regex(val, schema, name = None): # pylint: disable-msg=W0613
      
      if name is None:
          name = schema
  
      if not _regexs.has_key(name):
          return False
  
      try:
          if _regexs[name](val):
              return True
      except TypeError:
          pass
  
      return False
docs: !~~regex(regex) or !~~regex regex