1
Vote

Extension Method :: Append()

description

Proposed adding a regular expression extention method called Append() that would append additional expression syntax to an existing expression.
 
Consider the following usage:
Regex ipAddress = new Regex(String.Empty)
                                             .Append(@"\d{1,3}")
                                             .Append(@"\.")
                                             .Append(@"\d{1,3}")
                                             .Append(@"\.")
                                             .Append(@"\d{1,3}")
                                             .Append(@"\.")
                                             .Append(@"\d{1,3}");

comments

rps wrote Aug 26, 2010 at 7:30 PM

First draft completed. Note, the draft does not yet take into consideration a pre-existing $ metacharacter.

wrote Aug 26, 2010 at 7:30 PM

wrote Feb 1, 2013 at 9:44 PM