Hi everyone,
I have a field called CountryData and want to be able to extract the corresponding countries from these strings. Here are some examples of the data:
xxxx CA xxxx
xxxxxCA
xxxx(CA)xxxx
xxxx Canada xxxx
xxxxx CAN xxxx
I decided to use the RegEx tool to parse the country codes and then do a lookup using http://www.nationsonline.org/oneworld/country_code_list.htm:
\W([[:alpha:]][[:alpha:]])\W
- However I don’t know how I would search for 2 OR 3 letter codes.
- Another problem I had was in the following instance:
Abcd.co.uk (ca)
My expression here picks up co, uk and ca
- I’d like to be able to view all of these output fields and manually select which is the correct one.
- I don’t know how I would feed in a list of countries into this flow also as my data also contains country names as well as country codes.
- I’d also like to be able to input a file where some fields have been manually assigned and include this in the final output overriding any expressions
Thanks!