Delete the last letters in a string

My question

I have a string like in the example below…

I want the regex to take everything between CAKE: and the last CAPITOL LETTERS. Importen is that regex should go on the 4 CAPITOL LOETTES and NOT a WORD.
Input
CAKE:
ASdlamdsa alökjsdpk epwm wöemr
öl asdpo pöqweo pqwe qpwme öl
ölqew påö ölkqwe ölwkmqeöl.
JNCR

output
ASdlamdsa alökjsdpk epwm wöemr
öl asdpo pöqweo pqwe qpwme öl
ölqew påö ölkqwe ölwkmqeöl.

@Anders_Dahl1
have a look here:
grafik

2 Likes

It´s perfect! :slight_smile:
Thank you @ppr

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.