I started with PHP a few days ago.
I made some querys to my MySQL database and put the results in a table. Everything is OK with this.
Some of the strings I want to show have color codes (HEX colors) so they look like this:
vMafia|#FF00FFKarevan
#Jho#FF0000ny
etc. and I want to make them look like this:
vMafia|Karevan
#Jhony
I tried using preg_replace, but I don’t really know what to replace exactly. Hope I explained my problem in a understandable way and sorry if I made mistakes in my grammar.
Just use the code below’s preg_replace, it’s searching for a six character hex code starting with a number sign and replacing it with blank 🙂