i want to make a dialogue system where there is a entry string of tags that will be replaced from the correct world, witch is the best practice in this case? because there is also the different tag for male and female... i'm looking to check withc a for look into the entry string for the corresponding tags, but still can't get how to exactly split them
for example, if i have multiple tag into a string that will be [{M}something] [{F}something] there is some algorithm to cut out the word from [ to ] process it and return as a single string?