I have a semi unique problem and I have no clue where to start. I'm using python
So im trying to get a bunch of info about items off two API's and these API uses two different id methods
Name and ID
The Name will look something like: Helmet of Divan
The ID will look like: DIVAN_HELMET
This is easy for me connect the two in a dictionary. My problem is sometimes the names will have suffixes and prefixs. Such as:
Wise Helmet of Divan
or Clean Helmet of Divan
or even have Unicode like ✪ Helmet of Divan ✪
.
I want to get the ID DIVAN_HELMET from these names, but I can't know how many characters the prefix is or even if there is a suffix/prefix. I need to do this in mass for over 3 thousand items with dozens of suffixes and prefixes.