using System;
using System.Text.RegularExpressions;
class Program
{
static void Main() {
string str = "ms@@ @@csharp@@ @@desktop @@software@@ @@development@@";
MatchCollection mc = Regex.Matches(str, @"@@\b\S+?\b@@");
foreach(Match m in mc) {
Console.WriteLine(m);
}
}
}
/*
run:
@@csharp@@
@@software@@
@@development@@
*/