I have a string which is below , I wanted to remove data starting is the first date in the string and the end point is the last 3 letter casplock string which is for example the last 3 letter capslock string is TRU and all the data in the string after the last 3 letter capslock string which is TRU would be remove so this string would be remove. All the data after the last TRU will be removed.
Processing Co-Applicant No inquiry records found. Applicant USTIN CORDARYL Co-Applicant LONG
The data :
"08/03/2020 NOVUS HOME Mortgage Company TRU MORTGAGE 07/08/2020 FACTUAL DATA Mortgage Reporter XPN 07/08/2020 FCTUALDATA EFX 07/08/2020 NOVUS HOME Mortgage Company TRU MORTGAGE 07/07/2020 CROSSCOUNTRY Mortgage Loan TRU MORTGAG 07/07/2020 FACTUAL DATA Mortgage Reporter XPN 07/07/2020 FCTUALDATA EFX 05/21/2020 CAP ONE NA Bank Credit Card XPN 05/21/2020 CAPITAL ONE Credit Card TRU 05/21/2020 CAPITALONE Bank EFX 05/20/2020 CROSSCOUNTRY Mortgage Loan TRU MORTGAG 05/20/2020 FACTUAL DATA Mortgage Reporter XPN 05/20/2020 FCTUALDATA EFX 05/20/2020 FINGERHUT/WEBBANK Finance Company XPN 05/07/2020 EMS EFX 05/07/2020 GROW FINANCIAL CREDI Credit Bureau/Mortgage TRU Processing Co-Applicant No inquiry records found."