Re: [pear-webmaster] [PEAR-BUG] Bug #2855 [Opn]: New bug linking system converts already linked text
| From: | Daniel Convissor | Date: | Fri, 10 Dec 2004 00:47:25 +0000 |
| Subject: | Re: [pear-webmaster] [PEAR-BUG] Bug #2855 [Opn]: New bug linking system converts already linked text | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.webmaster |
| Request: | Send a blank email to pear-webmaster+get-3531@lists.php.net to get a copy of this message | ||
On Thu, Dec 09, 2004 at 08:51:49PM +0200, anatoly techtonik wrote:
>
> DC> On Thu, Dec 09, 2004 at 02:36:37PM +0200, anatoly techtonik wrote:
> >> - $text = preg_replace('/(?<!>)(bug|request)\s+#?([0-9]+)/i',
> >> + $text = preg_replace('/(?<!>)(bug|request)\s*#?([0-9]+)'
> DC> . '(?=(?>[^<]{0,100})(?!<\/a))/i',
>
> It perfectly solves the problem with bug3412 in link text with every
> possible rare case. I bet developers would prefer bug3423 to be converted
> in link also instead of doing it manually even in "rare cases".
Your regex is unnecessarily complex. I won't apply it and I hope
others on the web developer team won't either.
Anatoly, please allow this posting to be the last in this thread.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409