1
Vote

Extension Method :: Filter()

description

Proposed adding a regular expression extention method called Filter() that would run a sub expression against an existing regular expression to reduce or filter the possible matches.
 
Consider the following usage:
Regex areaCode = new Regex(@"\d{3}");
Regex localAreaCode = areaCode.Filter(@"214");

comments