using System;
using System.Text.RegularExpressions;
public class Program
{
// see: https://stackoverflow.com/questions/4892452/regex-match-multiple-times-in-string
public static void Main()
Regex regex = new Regex("(?<=<<).*?(?=>>)");
foreach (Match match in regex.Matches(
"this is a test for <<bob>> who like <<books>>"))
Console.WriteLine(match.Value);
}