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
Loading
Jaish MathewsPosted May 8, 2010, 12:35 PM
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
NevenPosted May 8, 2010, 12:38 PM