字符串:<br/>UserName: AV-6009034<br/>Password: 61fxe72opj<br/><br/>UserName: AV-5974303<br/>Password: p9stc1r5vb<br/><br/>UserName: AV-6016790<br/>Password: 95hh667r9a<br/><br/>
希望得到的结果:
m.Groups[0].Value:UserName: AV-6009034
Password: 61fxe72opjm.Groups[1].Value:UserName: AV-5974303
Password: p9stc1r5vb
................
希望得到的结果:
m.Groups[0].Value:UserName: AV-6009034
Password: 61fxe72opjm.Groups[1].Value:UserName: AV-5974303
Password: p9stc1r5vb
................
解决方案 »
- 初学C#,关于传递数组作为参数的小问题
- ImageButton中click事件失效
- 如何在排序中固定winform DataGridView中的合计行在最后一行?
- 关于System.Runtime.InteropServices
- SQL Server不存在或拒绝访问的问题,急!!!
- **** 请教在WinForm中嵌入Word和Excel
- public class类里面怎么使用Form1上的控件?谢谢了
- 问一下:LQ-1600K打印机怎样打印连续纸?
- 真的是最简单的问题,我都不好意思问了?
- 有关在VC#中使用WebBrowser的问题。
- 为什么画的矩形闪烁,如何解决
- asp.net2.0 发送email 大家快帮帮忙
m.Group["UserName"]
m.Group["Password"]
test = test.Replace(" ", " ");
test = test.Replace("<br/>", "\n");
MatchCollection mc = Regex.Matches(test, @"UserName:\s+\S+\s*Password:\s+\S+", RegexOptions.IgnoreCase);
foreach (Match m in mc)
{
richTextBox2.Text += m.Value + "\n\n";
}