I am trying to make a minecraft color code parser. I take the original text from a textbox and display the resulting text in the rich textbox. The original text would look something like this:
&4Red
Here, &4
means the text after that should be red color.
abc&4Red&fWhite
This text should look like abc in default color (black), "Red" in red, "White" in white.
So how can I parse the text to separate the text to "abc", "&4Red" and "&fWhite" ?