using System.Text.RegularExpressions;
public static void Main()
var regex = new Regex(@"\bjumped\b.*?\bthe\b");
var str = "The dog jumped over theatre cat and the cat bejumped above the mouse.";
var matches = regex.Matches(str);
Console.WriteLine("Count : " + matches.Count);
foreach (var match in matches)
Console.WriteLine(match);