G
Guest
how do you set multiple options on a regular expresion ?
I have the following code, and I would like to have both run w/ the compiled option, but the (Optioni==TRUE) version needs to ingore case. is there a way to do this ?
if (Optioni)
{
RegexPattern=new Regex(Pattern,RegexOptions.IgnoreCase);
}
else
{
RegexPattern=new Regex(Pattern,RegexOptions.Compiled);
}
I have the following code, and I would like to have both run w/ the compiled option, but the (Optioni==TRUE) version needs to ingore case. is there a way to do this ?
if (Optioni)
{
RegexPattern=new Regex(Pattern,RegexOptions.IgnoreCase);
}
else
{
RegexPattern=new Regex(Pattern,RegexOptions.Compiled);
}