fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string hrefValue = "abc xyx 12 13 a a b ";
  9. Match m = Regex.Match(hrefValue, @"abc\sxyx\s(\d+)\s(\d+)\s.*");
  10. Console.WriteLine("num 1: {0}, num 2: {1}", m.Groups[1].Value, m.Groups[2].Value);
  11. }
  12. }
Success #stdin #stdout 0.08s 34160KB
stdin
Standard input is empty
stdout
num 1: 12, num 2: 13