|
Does the landlord mean between "<div id =" middle ">" and "<P> windows of different area," no matter what the content is, replace it with empty, if so, then "<P> of different area Windows, "are you sure? If so, use the following
yourStr = "...........";
string resultStr = Regex.Replace (yourStr, "(<div id =\" middle\">) ([\\s\\S] *?) (<P> Window of different area,)" "," $ 1 $ 3 ", RegexOptions.IgnoreCase);
If only "<P>" is OK, then use the following
yourStr = "...........";
string resultStr = Regex.Replace (yourStr, "(<div id =\" middle\">) ([\\s\\S] *?) (<P>)", "$ 1 $ 3", RegexOptions.IgnoreCase); |
|