using System;
using System.Text.RegularExpressions;
namespace ConsoleApplication_C_Sharp
{
static class Program
{
static void Main()
{
string s = "java 'c#' python 'php' c++";
MatchCollection matchcollection = Regex.Matches(s, "'(.*?)'");
foreach (Match mc in matchcollection) {
Group g = mc.Groups[1];
Console.WriteLine(g.Value);
}
}
}
}
/*
run:
c#
php
*/