Basically the idea is to map the emoticons in the string to actual words. say for 🙂 you replace it with happy.
A more clear example would be.
Original:
Today is a sunny day :). But tomorrow it is going to rain :(.
Final:
Today is a sunny day happy. But tomorrow it is going to rain sad.
I have trying a solution using a common regex for all emoticons but I am not sure once you detect it is an emoticon, how to go back and replace each one with appropriate word.
I need it only for three emoticons :),:( and :D. Thank you.
Use
Regex.Replacemethod that takes a custom match evaluator.