fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var regex = new Regex(@"(?<=Paybacks[:\s]*)[^\s:].*", RegexOptions.IgnoreCase);
  9. string[] strings = {"Paybacks: blah", "Paybacks blah", "Paybacks blah"};
  10.  
  11. foreach (String s in strings)
  12. {
  13. Console.WriteLine(regex.Match(s)?.Value);
  14. }
  15. }
  16. }
Success #stdin #stdout 0.05s 29156KB
stdin
Standard input is empty
stdout
blah
blah
blah