A
Anonymous
Guest
this is for php bb code stuff
by defualt we have this set up:
[box="Title...:"]Text orCode...[/box]
as you can see [box=""] we use quotes
when i run preg_replace the quotes in box="" remain so
we get "Title...:"
what can i add to my syntax so that preg_replace only replaces every thing except Title...:
instead of "Title...:" i want Title...:
i tried all kinds of things i am just not good at php syntax. thanks for your time i hope you can help me ;-)
by defualt we have this set up:
[box="Title...:"]Text orCode...[/box]
as you can see [box=""] we use quotes
when i run preg_replace the quotes in box="" remain so
we get "Title...:"
what can i add to my syntax so that preg_replace only replaces every thing except Title...:
instead of "Title...:" i want Title...:
Code:
<?php
preg_replace(
"#\[box=(.+?)\](.+?)\[/box\]#is",
"<blockquote><b>\\1</b>\n<div class=\"box\">\\2</div>\n</blockquote>",
'[box="Title...:"]Text orCode...[/box]');
?>
i tried all kinds of things i am just not good at php syntax. thanks for your time i hope you can help me ;-)