输入为:
<p>1:4 And David said unto him, How went the matter? I pray thee, tell me.</p>
<p>And he answered, That the people are fled from the battle, and many of the people also are fallen and dead; and Saul and Jonathan his son are dead also.</p>
第一行包含数字(1:4),第二行只包含字符串。
我想要在 <p>
标签中仅找到字符串,并将该内容合并到先前的 html 文件中的 <p>
标签中。
意思是:
1:4 And David said unto him, How went the matter? I pray thee, tell me. And he answered, That the people are fled from the battle, and many of the people also are fallen and dead; and Saul and Jonathan his son are dead also.
我可以这样做吗:
Regex.IsMatch(html, @"^[a-zA-Z]+$");
我该怎么做?