fork 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 testEcl = "https://u...content-available-to-author-only...e.au/search?q=";
  9. var asmName = string.Empty;
  10. var m = Regex.Match(testEcl, @"(.+)+(?:/search[?]q=)", RegexOptions.IgnoreCase);
  11. if (m.Success)
  12. {
  13. //asmName = m.Groups[1].Value;
  14. for(int i=0; i < m.Groups.Count; i++){
  15. asmName = m.Groups[i].Value;
  16. Console.WriteLine(asmName);
  17. }
  18. }
  19. Console.WriteLine("TEST "+m.Groups[1].Value);
  20. }
  21. }
  22.  
  23.  
Success #stdin #stdout 0.06s 28928KB
stdin
Standard input is empty
stdout
https://u...content-available-to-author-only...e.au/search?q=
https://u...content-available-to-author-only...e.au
TEST https://u...content-available-to-author-only...e.au