这是C#的例子: string Text=@"ewrewer,,rwerion,werwerwerwerion; eerwionerewrionewwe;erw";
string p=@"\bn\S*ion\b";
System.Text.RegularExpressions.MatchCollection ma=Regex.Matches(Text,p,RegexOptions.IgnoreCase); foreach(Match NextMatch in ma)
{
this.listBox1.Items.Add(NextMatch.Index);
}
string p=@"\bn\S*ion\b";
System.Text.RegularExpressions.MatchCollection ma=Regex.Matches(Text,p,RegexOptions.IgnoreCase); foreach(Match NextMatch in ma)
{
this.listBox1.Items.Add(NextMatch.Index);
}
解决方案 »
- VCL中的TFontDialog的options问题,希望知道的告诉一下
- delphi中开发的程序窗口如何自适应分辨率啊??
- [DCOM的DLLDELPHI开发环境中的问题]~点保存时出现如下错误~(非runtime问题)
- 如何从video中提取音频并保存?
- 于『删帖事件查明: 代bluebohe发帖』最终说明版--MENGGIRL
- 怎么取出执行一段代码,用了多长时间?大侠帮帮忙!
- 拟成立一个软件工作室,现欲吸纳几名成员,详情见内
- 怎么给TMeno ,TListView加上背景图片
- 关于光驱的问题
- delphi6中的installShield
- 高等学校毕业生见习期考核鉴定表
- 那里有 fastreport 或者 minireport 控件下载(是delphi中用的)
http://www.latiumsoftware.com/en/articles/00009.php3