这是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);
}