I am using this pattern
const string ptnBodytext = @"<p>\s*(.+?)\s*</p>";
in order to extract the text within the <p>
tags. It works fine except for those text with newline, e.g.:
<p>
Lorem ipsum
second line or
third one?
</p>
How can I change the pattern in order to include newline, tabs and so on?
", "").Replace("
", "")`? – Wiktor Stribiżew Aug 23 '16 at 11:41