regexParser
1 import unit_threaded; 2 3 auto res = regex("(a)(.)(c)").parse("abcd"); 4 res.success.shouldBeTrue; 5 res.results.shouldEqual(["abc", "a", "b", "c"]); 6 res.rest.shouldEqual("d");
regexParser works from the start of the input
import unit_threaded; auto res = regex("abc").parse("babc"); res.success.shouldBeFalse;
convenient function to instantiate a regexparser