I have concatenated strings from which I need to parse out words in all uppercase. Multiple words can occur and they could be separated by a space or other non-lowercase letter characters. Other words in the string can have the first letter only in uppercase (title case), but those words should not be included.
I have provided a text file of sample data as an attachment, including the desired outputs from the parsing. I have tried using REGEX, but I am struggling with the complexity of the pattern and the presence of title case words that I do not want included. Any assistance with a solution is greatly appreciated. Thank you in advance!
Note: Ideally the uppercase words should be at the beginning only. In other words, I would prefer that those occurring later in the string would not be parsed (see Record 5 for an example). I would welcome an alternate solution as well that would parse them anywhere in the string, however, in the event I need to do so with a future dataset.
Excerpt Sample:
| Original | Desired1 | Desired2 |
| THIS is a first example 202201.pdf | THIS | is a first example 202201.pdf |
| UPPER PENINSULA Sample Data Line | UPPER PENINSULA | Sample Data Line |
| Word This Prepayment Form | [Null] | Word This Prepayment Form |
| Retailer_s More Other DA-1S | [Null] | Retailer_s More Other DA-1S |
| Monthly Word More OTHER A-1246 | [Null] | Monthly Word More OTHER A-1246 |
Screen Shot (see txt attachment):

Regards,
taxtechfl