Log in

View Full Version : Parsing BBcode tag url in a string?



rctxtreme
07-11-2007, 04:36 AM
I use this code to parse BBcode:

$thedescription=str_replace("[b]","<b>",$thedescription);
But I can't figure out how to parse url tags due to them having to correspond as so:

[url=
<a href="
]
">
Because ] can be generic, I cannot replace ] with ">

...so any help?

djr33
07-11-2007, 05:05 AM
http://www.dynamicdrive.com/forums/showthread.php?t=17549

rctxtreme
07-11-2007, 05:14 AM
Thanks... I've mixed parts in with my own code.