using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Text.RegularExpressions;
using System.Reflection;
public class MainClass{
public static void Main(){
Regex r1 = new Regex(@"<([^>]+)>[^<]*(\1)>");
string s0 = "S ";
string s1 = "S";
Console.WriteLine(r1.IsMatch(s0));
Console.WriteLine(r1.IsMatch(s1));
}
}
True
False