convenient function to instantiate a regexparser
regexParser
auto res = regex("(a)(.)(c)").parse("abcd"); res.success.should == true; res.results.should == ["abc", "a", "b", "c"]; res.rest.shouldEqual("d");
regexParser works from the start of the input
auto res = regex("abc").parse("babc"); res.success.shouldBeFalse;
See Implementation
convenient function to instantiate a regexparser