Dears I am trying replace anything between '{!' and '!}' i.e {!A!} and {!B!} and {!ABC!} with XYZ. I tried the following but no help. Can anyone help? $this->template=str_replace("{!*!}","XYZ",$this->template); Thank you Regards, OOzy What is the purpose of life? Regards, OOzy What is the purpose of life? --------------------------------- Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses.