public void DoesNotFindThreeGroupsLiteral() { var pat = "a (b) c (d) e"; var groups = GenUtils.RegexFindGroups("a b c D e", pat); Assert.AreNotEqual(3, groups.Count); }
public void DoesNotFindThreeGroupsAbstract() { var pat = @"a (http://.+\s*) c (\d+) e"; var groups = GenUtils.RegexFindGroups("a ftp://foo.com?x=y c 19423 e", pat); Assert.AreNotEqual(3, groups.Count); }
public void FindsThreeGroupsLiteral() { var pat = "a (b) c (d) e"; var groups = GenUtils.RegexFindGroups("a b c d e", pat); Assert.AreEqual(3, groups.Count); }