to be honest, I don't know any regex which is faster than str_replace therefore it will be faster in any case. the only question is if it will speed up things in case you change it :)