Skip to content

Instantly share code, notes, and snippets.

// This pattern matches the xml element in paragraph that follows:
Regex _xmlElementPattern = new Regex(@"<xml>(.|\n)+?</xml>", RegexOptions.Multiline);
/* =============Sample input text ===============
<head>
<meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dwindows-125=
2">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 14">
<meta name=3DOriginator content=3D"Microsoft Word 14">