Hi Guys,

I have the following code in a massive string... but there all different: ##component5#?1,4,1##

They all start with ##component and end with ## but the bit in the middle can be anything... and I need to remove this text completely from the string... What would be the best way to go about it?

Dan

I think you should look at preg_replace. If you need help with the regex, paste some examples of the string you need to match/remove. Basically, /##.*?##/ could do it.