The parameter name Multilineis misleading, as is the correct option - Singleline:
Regex r = new Regex("start(.*?)end", RegexOptions.Singleline);
From MSDN, Listing RegexOptions :
Singleline - sets single line mode. Changes the value of a dot (.) So that it matches each character (instead of every character except \ n).
Odded source
share