Page 1 of 1

how does bbcode parsing work?

Posted: Thu Jan 10, 2002 7:54 pm
by jackqu7
hi,
I'm pretty new to php, and I was wondering how you guys parse bbcode and how you extract variables (like what URL to make an anchor too).
I've tried looking at the code but it seems kinda strange! and also it didn't work when I tried it in a separate file.
thanks to any one who can enlighten me on this subject, :D
jack

Posted: Thu Jan 10, 2002 8:20 pm
by nathan

Posted: Thu Jan 10, 2002 8:25 pm
by jackqu7
i've looked at that post before, it tells me how you nest the tags etc, but I was wondering how the actual working out if theres a tag there and what it does works.
sorry if it's a bit out of scope and thanks for any further assistance,
jack

Posted: Thu Jan 10, 2002 11:12 pm
by nathan
Yeah, it's a bit out of scope. The code's not _that_ hardcore, once you understand the roles of the two different passes we make.