Automatically changing the color of the first letter of every word within a list of text
Hi, I have very basic AE skills and can't figure this one out. I only want every "C" to be yellow and don't want to manually change it every time I change the words.
Tried an expression that looks for every space " " and then changes the color of the character right next to that, which would be the C's:
var userText = text.sourceText;
if (userText.length > 0) {
var modifiedText = userText.replace(/ (\w)/g, " <span style='color:#FCD527'>$1</span>");
modifiedText;
} else {
""
}
I'm getting "Error, couldn't turn result into numeric value"

Thank you for any ideas you may have.
