Hello all, requesting your expertise in how to navigate this issue I'm stuck on.
I'm trying to parse a particular data point from a string. This is currently a proof of concept but the data set will significantly increase to cover thousands of rows of data so I'm looking for a concise way to do so which I can then use on other parts at a later time.
I've amended the data however it would be a similar format to this:
(Country Of Origin in (FRANCE, GERMANY, AUSTRIA, NETHERLANDS)) and (Local Currency in (Euro)) and (Safety Rating (Lowest, Across agencies, Regional/National, One or Both) = CCC or higher) and (Days Until Review is less than 10950)
My aim:
- Separate Country of Origin and the countries contained within the brackets. Please note, country of origin could be contained anywhere within the string so it won't always appear at the beginning.
- Additionally, I will be parsing out other parts of the string such as Local Currency and the currency contained within, Safety Rating all the way up to Higher, and the Days Until Review. Similar to Country of Origin, the other data points mentioned could fall anywhere within the string.
- A lot of strings won't contain the data points mentioned above, for example some will only contain Safety Rating and Days Until Review.
Please let me know if I can clarify anything further