I have a quite big XML output from an application. I need to process it with my program and then feed it back to the original program. There are pieces in this XML which nee
If you're still having problems with this, it may be because you are using AND with your RegexOptions instead of OR.
This code is wrong and will pass zero as the second parameter to the constructor:
Regex regExp = new Regex(@" (.*?) ",
RegexOptions.Multiline & RegexOptions.IgnorePatternWhitespace & RegexOptions.CultureInvariant);
This code is correct (as far as using multiple RegexOptions flags):
Regex regExp = new Regex(@" (.*?) ",
RegexOptions.Multiline | RegexOptions.IgnorePatternWhitespace | RegexOptions.CultureInvariant);