fork(1) download
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Text.RegularExpressions;
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. var s = "A Borrower (or the Parent) may not deliver a Request if as a result of the proposed Utility:\r[15] or more Term Loans [(other than Inc Loans)] would be outstanding; [or]\r[10] or more Utilisations would be outstanding[; or\r[5 ] or more Loans would be outstanding].";
  12. var result = s.Split(new[] {"\r", "\n"}, StringSplitOptions.RemoveEmptyEntries)
  13. .Where(x => x.Contains("other than Inc Loans"))
  14. .FirstOrDefault();
  15. Console.WriteLine(result);
  16. }
  17. }
Success #stdin #stdout 0.01s 131520KB
stdin
Standard input is empty
stdout
[15] or more Term Loans [(other than Inc Loans)] would be outstanding; [or]