fork(4) download
  1. using System;
  2. using System.IO;
  3. using System.Text.RegularExpressions;
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var nodeValue = "Test ID=\"12345\" hello";
  9. GroupCollection ids = Regex.Match(nodeValue, "ID=\"([^\"]*)").Groups;
  10. Console.WriteLine(ids[1].Value);
  11. }
  12.  
  13. }
  14.  
  15.  
Success #stdin #stdout 0.11s 24688KB
stdin
Standard input is empty
stdout
12345