04-07-2008, 12:25 PM
|
#20 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Okay, I tried my own [url], and it messed up if there are two url bbcodes in the place.
PHP Code:
$bbcode = array( 'urlRegex' => "/\[url=(.*)\](.*)\[\/url\]/", 'urlReplace' => '<a href="$1" class="url">$2</a>' ); [/url]
I get this:
[code]
<a href="http://www.google.com]google and [url=http://www.google.com" class="url">Google</a>
[/code]
__________________
VillageIdiot can have my babbies ;d
|
|
|
|