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 = "8009030C: LdapErr: DSID-0C0904DC, comment: AcceptSecurityContext error, data 701, v1db1";
  9. string[] array = s.Split(new []{','},
  10. StringSplitOptions.RemoveEmptyEntries);
  11. string s1 = array[array.Length - 2];
  12. string finalstring = Regex.Match(s1, @"\d+").Value;
  13. Console.WriteLine(finalstring);
  14. }
  15. }
Success #stdin #stdout 0.06s 34000KB
stdin
Standard input is empty
stdout
701