![]() |
preg_replace
well i heard preg_replace is a very hard thing in php but i thought i would give a swing at it, i did with a simple phrase already and it worked great but i cant get this one to work with variables and what nots..
heres my error: Quote:
PHP Code:
|
the [ is a special char in regular expressions, so you have to escape it if you want it to be the actual character:
PHP Code:
|
more errors, yeah!!!>_<
Quote:
|
remove the 'e' from 'esiU'
you'r not executing a callback function are you? ^^ |
i just copied that from functions_bbcodeparse.php lol! so what does that exactly do? #siU?
i tried understanding the way php.net explains it but im just confused>_< |
i -> ignore cases
e -> execute a callback function (like vb does if there is a handle_bbcode()..) s -> means a dot can be every character not really sure about the U, i never used it right now ^^ |
All times are GMT. The time now is 04:11 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|