I need to pick up the company name from each line.
I can't write a regex that will pick up the string
"MUNICH AMERICAN (CNA)" or "MUNICH AMERICAN" from each line.
Basically, it has to pick up a string from the beginning of the line
to "Treaty" part and it should ignore Totals since it also has treaty string in it.
MUNICH AMERICAN (CNA) Treaty: 022
MUNICH AMERICAN Treaty: 034
Totals: Treaty: 099
Thank you.
I can't write a regex that will pick up the string
"MUNICH AMERICAN (CNA)" or "MUNICH AMERICAN" from each line.
Basically, it has to pick up a string from the beginning of the line
to "Treaty" part and it should ignore Totals since it also has treaty string in it.
MUNICH AMERICAN (CNA) Treaty: 022
MUNICH AMERICAN Treaty: 034
Totals: Treaty: 099
Thank you.