[!--quoteo(post=359494:date=Mar 28 2006, 05:55 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Mar 28 2006, 05:55 PM) [snapback]359494[/snapback][/div][div class=\'quotemain\'][!--quotec--] quickie... OK you have doen teh javascript to place stuff like [b]BOLD[/b],[h1]Header[/h1] into the text area adn teh the whole string has been saved in the database. You want to replace [b]SOME TEXT[/b] with bold tags adn same for h1 now you could do a string replace on just the '[' and the ']' [code]<?php $string = "[b]some bold text[/b] at the start of teh post."; $lookfor = array('[', ']'); $replacewith = array('<', '>'); $string = str_replace($lookfor, $replacewith, $string); ?> [/code] or you could do similar with regular expressions... [code]<?php $lookfor = array('/[b](?!\[)[/b]/','/[h1](?!\[)[/h1]/'); $replacewith = array('<b>\\1</b>', '<h1>\\1</h1>'); $strinng = preg_replace($lookfor, $replacewith, $string); ?> [/code] It takes too long to explain regular expressions so juts go and find a good tutorial on them..... [/quote] Ok. That will do. Thank you! -Computerpros