Umbrella provides a simple extension that allows the use of the result of a Regular Expression match in a LINQ Query.

For example :
     var q = from m in Regex.Match("cdef abc test akc dummy abc foo", "(?<v>a.c)").AsEnumerable()
             let value = m.Groups["v"].Value
             where value == "akc"
             select value;

     Assert.Equal(1, q.Count());

Last edited Mar 3, 2009 at 2:34 AM by jlaban, version 1


murpheux May 26, 2009 at 8:49 AM 
Great job. One thing clearly missing from these samples are the required namespaces. Testing any of the examples has been quite not easy cos one had to guess the using namespaces to add.