譬如select * from table as a
我要找出
from table
table as
as a
所有连续的两个词
这个正则表达式怎么搞呢?
我要找出
from table
table as
as a
所有连续的两个词
这个正则表达式怎么搞呢?
解决方案 »
- EntityFramework 多对多 的Include问题
- 在windows2008 Server 企业版中 无法安装IIS
- 关于DatagridView中的CurrentCellDirtyStateChanged问题
- 请教一个排名问题如何实现好
- C#终获取日期时间
- 自定义泛型集合,最简单的方法是从什么类继承??
- 问一个c#参数传递的问题
- 关于泛型的代码优化(简短)
- 请高手指点,看看我这段代码那个地方有错。谢谢
- 请教:C#中可调用另一窗口的控件的属性值吗?
- 我要往文件里写一次写很多数据.怎样保证数据的一至性?
- 关于在window.open()的情况下用div.style.display的奇怪问题!
Regex regex = new Regex(pattern, RegexOptions.Singleline );
Match match = regex.Match("select * from table as a");
while (match.Success)
{
MessageBox.Show(match.Value);
match = regex.Match("select * from table as a", match.Groups[2].Index);
}
不能匹配select * from table as a,但是把*改成字符就可以.
测试通过..