[b]. I have searched google and everywhere before asking this question. I have a forum that the posts support php bbcodes. All basic bbcodes like [b], [i], [h1], e.t.c are working well. I used the str_replace() function for the bbcodes. Now i have a problem on how to create the [quote] bbcode . The quote bbcode tag is in the format [quote=username]. The user wil be detected in the string and used for some database queries. The problem now lies in how to get the username infront of the [quote= in the tag. I'm so so sorry this isnt well explained but i hope you guy would please understand. I'm stil a newbie here. Guys your help wil be extremely appriciated.