I have been attempting to fix my regex but I cannot.I want capture group 3 to contain all letters and white space between the digit 3
and capture group 2.
.*([A-Z]{3}|[A-Z]{3})+\s+([0-9]{4}|[0-9]{4}\w)\s{2}(.*?)\d
My regex properly gets this but it has no line breaks.
ACG 3141 Intermediate Financial Accounting II 3 hrs
My regex cant get
ACG 3501 Financial Accounting for Governmental and
Nonprofit Organizations
3 hrs
TAX 4001 Taxation of Business Entities and
Transactions
3 hrs
I cant figure out how to use (.*?)\d
to go to the next digit ignoring the line breaks in capture group 3.