MrCraig
07-11-2007, 08:36 PM
Okay, im using a BB code script that tomm helped me with (thanks dude) However, it only applies the code if there are no new lines in between it
for example
Bla
Bla
Wont work..
The code is as follows:
<?php
$str = preg_replace('#\[align=(.*?)\](.*?)\[/align\]#i','<div align="$1">$2</div>',$str);
return $str;
?>
Any help please?
for example
Bla
Bla
Wont work..
The code is as follows:
<?php
$str = preg_replace('#\[align=(.*?)\](.*?)\[/align\]#i','<div align="$1">$2</div>',$str);
return $str;
?>
Any help please?