fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. class Demo {
  5. public static void Main()
  6. {
  7. String text = "<ServiceUsage>k__BackingField";
  8. Regex re = new Regex(@"\<([^)]*)\>");
  9. foreach (Match match in re.Matches(text)) {
  10. Console.WriteLine(match.Groups[1]);
  11. }
  12. }
  13. }
Success #stdin #stdout 0.07s 31308KB
stdin
Standard input is empty
stdout
ServiceUsage