Re: preg_replace problem (or possibly bug)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What I see in the page you sent is a [url] "bbcode-tag" that is not closed (i.e. it has no [/url] or it's not displayed)

If that's not the problem, could you send some example that isn't working (and some others that are working)

Michael wrote:
I am currently writing a forum system, but at the moment I have a bug
that no one can seem to get to the root cause of. Basically I am using
preg_replace with the pattern as "'\[url=(.*?)\](.*?)\[/url\]'is".
However for most links it works fine but for others it just doesn't
render the bbcode to a link, we were trying to get to the root cause
of it here http://michael-m.co.uk/forums/index.php?action=view_topic&id=31&page=1
but we failed. I'm not really that good with regular expresions so
that might explain why. Also we had never noticed these problems until
about 3 days ago, but I see no reason why it could have started. All
help will be greatly appreciated, you may use the username php and the
password php to log on to do your own tests but please keep the
testing to the topic (and the spam forum if necessary).

Many Thanks,
Michael Mulqueen
<michael-m.co.uk>
--
Atentamente,
J. Rafael Salazar Magaña
Innox - Innovación Inteligente
Tel: +52 (33) 3615 5348 ext. 205 / 01 800 2-SOFTWARE
http://www.innox.com.mx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux