fork(1) 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(@"\<([a-f0-9]+)\>");
  9. foreach (Match match in re.Matches(text)) {
  10. Console.WriteLine(match.Groups[1]);
  11. }
  12. }
  13. }
Success #stdin #stdout 0.1s 30744KB
stdin
Standard input is empty
stdout
Standard output is empty