抢分了换行的正则表达式是什么(文本里面的换行) 抢分了换行的正则表达式是什么(文本里面的换行)tr><td>象tr和td的换行用什么 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 做个测试,真的就是\n代码如下: string sourceString = @"<tr> <td>"; string pattern = @"[^\n]*"; System.Text.RegularExpressions.Match result = Regex.Match(sourceString,pattern,System.Text.RegularExpressions.RegexOptions.IgnoreCase|System.Text.RegularExpressions.RegexOptions.Multiline); if (result.Success) { //提示正确信息 //WL("正确:" + result.Groups[1].Value);//输出 WL("正确:" + result.Value);//输出 } else { //提示错误信息 WL("错误!");//输出 } http://community.csdn.net/Expert/topic/5689/5689921.xml?temp=.6821253解决这个的给分 你想做什么吧,绝大部分情况下,用\s就行了tr>\s*<td> 跪求高手帮助...... 关于新闻管理系统 做毕设急用 实现日历功能 求帮忙 求正则表达式(url重写) 怎样用JavaScript动态生成服务器端控件? 有人用C#封装过大华DVR的SDK吗? 在后天用代码构建datagrid,并显示数据 请教关于ACT工具(Microsoft Application Center Test)的的使用。 datagrid 选择的问题 asp.net里12/8如何才能=2 获取动态Table里的动态文本框值的问题 如何按照输入的格式存入数据库后显示出来
string sourceString = @"<tr>
<td>";
string pattern = @"[^\n]*";
System.Text.RegularExpressions.Match result = Regex.Match(sourceString,pattern,System.Text.RegularExpressions.RegexOptions.IgnoreCase|System.Text.RegularExpressions.RegexOptions.Multiline);
if (result.Success)
{
//提示正确信息
//WL("正确:" + result.Groups[1].Value);//输出
WL("正确:" + result.Value);//输出
}
else
{
//提示错误信息
WL("错误!");//输出
}
解决这个的给分