fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var text = "blah blah this is a this search engine blah";
  9. var result = Regex.Match(text, @"this.*?engine",
  10. RegexOptions.Singleline | RegexOptions.RightToLeft)?.Value;
  11. Console.WriteLine(result);
  12. }
  13. }
Success #stdin #stdout 0.06s 21020KB
stdin
Standard input is empty
stdout
this search engine