在aspx.cs页面中的代码如下,谢谢
private string getContentFromSingleFile(string title,string fileContent)
{
string content = System.Text.RegularExpressions.Regex.Match(fileContent,title+@"([\s\S]*?)((第\w回)|($))").ToString();
content = content.Replace("\n","<br/>").Replace(" ","&nbsp;");
return content;
}
在aaa.cs页面中的代码如下
public static string getContentFromSingleFile(string title,string fileContent)
{
string content = System.Text.RegularExpressions.Regex.Match(fileContent,title+@"([\s\S]*?)((第\w回)|($))").ToString();
content = content.Replace("\n","<br/>").Replace(" ","&nbsp;");
return content;
}