示例#1
0
        public void TestRegexExtract1()
        {
            var actual = MyFunctions.RegexExtract("Hello World", @"\s+(\w+)", 1);

            Assert.AreEqual("World", actual);
        }
示例#2
0
        public void TestRegexExtract()
        {
            var actual = MyFunctions.RegexExtract("Hello World", @"^\w+", 0);

            Assert.AreEqual("Hello", actual);
        }