Okay, so say I've got a Regex like so:
const string _regexAreaBlock = @"^\s*(?
and a function call like so:
MatchCollection matches = Regex.Matches(buff, _regexAreaBlock, RegexOptions.Multiline);
Where buff looks like:
1.0 Mission Capabilities/Requirements Assessment Area
[lots of text that I'm going to do something with in a minute]
2.0 Resource Assessment Area
[more text, that I'm going to do something with after I get done with the first block of text]
3.0 [...and so on]
Why is it not matching ANY text, let alone not neatly matching each block and capturing the number, title, and text in the appropriately named groups?
Oh, if it helps you:
const string _regexAreaBlock = @"(\d\.0)\b((?![\r\n][\t ]*\d\.0).)+";
without the Multiline option seems to do approximately the right thing, under most circumstances...