Link to home
Start Free TrialLog in
Avatar of ddrudik
ddrudikFlag for United States of America

asked on

RegexOptions

I have regex object:
Regex reOperation = new Regex(matchpattern);

I also have a string:
regoptions = "RegexOptions.IgnoreCase | RegexOptions.Multiline";

I would like to define the object as:
Regex reOperation = new Regex(matchpattern,regoptions);

Or in some similar fashion where regoptions is a dynamic string containing the desired RegexOptions.
ASKER CERTIFIED SOLUTION
Avatar of Fernando Soto
Fernando Soto
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ddrudik

ASKER

Perfect, thanks.
Not a problem, glad I was able to help.  ;=)