def TRegex(pobj):
  desc = WithDesc("String matching regex \"%s\"" %
                  pobj.pattern.encode("string_escape"))

  return desc(TAnd(TString, pobj.match))
Checks whether a string matches a specific regular expression.
dataset/ETHPy150Open ganeti/ganeti/lib/ht.py/TRegex