Details
Description
Currently, when I want to use regex options, like RegexOptions.Compile, I have to import System.Text.RegularExpressions, because while Regex type has alias regex, RegexOptions does not. It would be great if regex syntax is extended like this:
/<regex goes here>/[imncsx]
And letters following regular expression are automatically converted into appropriate RegexOptions. All of the letters, except c (Compile) are standard and can be used inline (?[imnsx]), but sadly, c is not there, which is what I use most.
I've attached the patch against .2250 for this feature. Now code like this is possible: