Re: preg_replace problem (or possibly bug)
| From: | Rafael | Date: | Wed, 08 Mar 2006 17:59:53 +0000 |
| Subject: | Re: preg_replace problem (or possibly bug) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231673@lists.php.net to get a copy of this message | ||
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