[!--quoteo(post=376026:date=May 22 2006, 03:49 PM:name=obsidian)--][div class=\'quotetop\']QUOTE(obsidian @ May 22 2006, 03:49 PM) [snapback]376026[/snapback][/div][div class=\'quotemain\'][!--quotec--] passero, welcome to the forums! if you'll look for previous discussions on how to write your own BBCode parser, you'll get the basic understanding of what to use for your template plan of attack. i'll give you a simple function that runs a BBCode parser on a string, though, so you can see where i'm coming from: ... [/quote] Thx for the reply but that's not what i'm looking for.. In fact the code you posted is just a "find and replace"... My template code will be more than just find and replace. For example: [code] <news number="5"> <title><h1>#TITLE#</h1></title> <item> <p>#BODY#</p> <item> </news> [/code] This would mean that there wil be something like that in the output: [code]<h1>first title</h1> <p>first body</p> <h1>second title</h1> <p>second body</p> <h1>3th title</h1> <p>3th body</p>[/code] You see what i mean...