fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string s = "AA_x0042_x005F_x00FF_x0043_BB";
  9. foreach (Match match in Regex.Matches(s, "(?<!_x005F)_x(?!005F)[0-9A-F]{4}_"))
  10. {
  11. Console.WriteLine(match.Value);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.04s 38192KB
stdin
Standard input is empty
stdout
_x0042_
_x0043_