Please can someone tell me how is possible to put multiple 3rd argument in Regex.Matches function.
Declaration looks like this:
Regex.Matches(string, pattern, Regex.Options);
I need to include more than one Regexoptions.
I tried with:
Regex.Matches(string, pattern, RegexOptions.IgnoreCase && RegexOptions.Singleline && RegexOptions.Multiline);
and
Regex.Matches(string, pattern, RegexOptions.IgnoreCase + RegexOptions.Singleline + RegexOptions.Multiline);
but i get error here.
Is there any solution for that?
Thanks in advance
Regex.Matches question
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Jaish MathewsRank #225 · 11K reputationPosted May 8, 2010, 8:35 AM EDT
Below method, using pipe comiled for me.
RegexOptions.IgnoreCase | RegexOptions.Singleline | RegexOptions.Multiline
Check this link too.
http://msdn.microsoft.com/en-us/library/system.text.regularexpressions.regexoptions.aspx
Neven16 reputationPosted May 8, 2010, 8:38 AM EDT