I need help fixing the regular expression below. I tried to rewrite it from Python to C#, but C# displays empty m.value. Thanks!
In Python it works well and displays brackets and inside contents:
Python Code:
r1="(dog apple text) (grape cushion cat)"
a=re.findall("[(]+[/s]+[a-z]+[)]+",r1)
print(a[:])
//Conent gives me (dog apple text) (grape cushion cat) , so if I will call print(a[0]) it will give me (dog apple text)
String r1="(dog apple text) (grape cushion cat)"
String pat=@"[(]+[/s]+[a-z]+[)]+";
foreach (Match m in Regex.Matches(irregv, pat2))
{
Console.WriteLine("'{0}'", m.Value);
}