I need to check RegexOptions.Singleline RegexOptions.IgnoreCase both while extracting a text from a string. For this I have created a variable (of type RegexOptions) and added Assign like below
RegOptions = RegexOptions.Singleline
But I need to add RegexOptions.IgnoreCase as well in RegOptions.
Based on c# pattern I tried to add it like below
Do you use VB mode? If so the following sample helps you. (Please use OR operator)
System.Text.RegularExpressions.Regex.Match(s,pattern,System.Text.RegularExpressions.RegexOptions.IgnoreCase OR System.Text.RegularExpressions.RegexOptions.Multiline ).Value
Another question, I want to replace System.Environment.Newline with space, as desired output contains multiple lines, using like below (where Matched is the matched string)