Hejsan!
jag har denna koden men får den inte att fungera helt och hållet. Vill byta ut #xxxxxxYYYYYY mot <font color"#xxxxxx">YYYYYY</font>
preg_replace("/(#[0-9a-fA-F]{6})(.)(?=[#])/", "<font color=\"\\1\">\\2</font>", "#009900M#009922E#009944G#009966A#009988C#0099AAO#0099CCR#0099EEP #ffff00Armor Update (New Lower Prices!)")
just nu får jag bara detta
<font color="#009900">M</font><font color="#009922">E</font><font color="#009944">G</font><font color="#009966">A</font><font color="#009988">C</font><font color="#0099AA">O</font><font color="#0099CC">R</font>#0099EEP #ffff00Armor Update (New Lower Prices!)