Hey guys...
I'm trying to get the following BBcode text
[file]C:\Documents and Settings\Administrator\Desktop\WS_FTP.LOG[/file]
to change in to a URL to the document....
here's what I have - but it doesnt seem to work
$str = preg_replace("/\[file\]( a-zA-Z0-9\:\/\-\?\&\.\=\_\~\#\')\[\/file\]/", '<a href="$1" target="_blank">$1</a>', $str);
where am I going wrong?
thanks