I tried to change the font color of my String in my vue application based on a condition. However, the solutions I found so far changed the color for the whole text. I only want specific parts to be changed. For example:
const exampleString= 'Yesterday I was ACTIVITY with FRIEND who I first met in PLACE'
The words in capital letters should be in color red but the rest in black. So a condition like “if three subsequent chars are capital letters than color red until empty space”. Is there a way to implement this ?