The string looks like
Maximum number of Utilisations
A Borrower (or the Parent) may not deliver a Utilisation Request if as a result of the proposed Utilisation:<br/>
[10] or more Term Loans [(other than Incremental Company Loans)] would be outstanding; [or]<br/>
[15] or more Revolving Company Utilisations would be outstanding[; or<br/>
[20] or more Incremental Company Loans would be outstanding].<br/>
A Borrower (or the Parent) may not request that a Company A Loan [or an Incremental Company Loan] be divided if, as a result of the proposed division, [ 25 ] or more Company A Loans [or [ 50 ] or more Incremental Company Loans] would be outstanding.<br/>
[A Borrower (or the Parent) may not request that a Company B Loan or a Company C Loan be divided.]
Expected outputs:
[ 10 ] or more Term Loans [(other than Incremental Company Loans)] would be outstanding;
[ 15 ] or more Revolving Company Utilisations would be outstanding[; or
[ 20 ] or more Incremental Company Loans would be outstanding].
What i was trying which doesn't seem to be working
Regex = '.*other than Incremental Company Loans.*'
This returns whole paragraph. There could be other way to do this, but we have to do this using REGEX only.
`? Is that HTML? The easiest is to replace all `
` with `\n`, and use a non-regex solution I already shared with you. – Wiktor Stribiżew Oct 31 '18 at 09:23
"}, StringSplitOptions.None).Where(x => x.Contains("other than Incremental Facility Loans"))`. – Wiktor Stribiżew Oct 31 '18 at 09:24