示例#1
0
 def test_notBehind(self):
     regex = RegExpBuilder()
     regex.exactly(1).of("dart")
     regex.notBehind(lambda r: r.exactly(1).of("pqr"))
     regex = regex.getRegExp()
     
     self.assertTrue(regex.match("dartlang") is not None)
     self.assertTrue(regex.match("dartpqr") is None)