Search the Community
Showing results for tags 'bbcode'.
-
Hi Guys, So I am trying to figure out how I can an input such as [url=value] and turn it into <a href="value"> Of course, I want to preserve that value. Thanks for the help!
-
hi all, i am a newbie member of php world, i need to learn the answer of a simple question why "preg_replace('/\@!$@&()\'*+,;=%]+)"\](.+)\[\!url\]/', '<a href="$1">$2</a>', $string)" expression adds my own site address at the beginning of the link created? such as http://www.mysite.com/www.thesitepreg_replace_created.com
-
so i am creating a bbcode parser, and i am having a little issue with my pattern. #\[([b|i|u])]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i this works for b,i & u tags; however i am trying to implement a tag that is longer then 1 character (not sure why this would cause a problem, but it does) and add a parameter. i have tried the pattern below, but without luck. #\[([b|i|u|color])(?:=(.+))]((?:[^[]|\[(?!/?\1])|(?R))+)\[/\1]#i if someone could point me in the right direction, that would be amazing..