Re: [pear-webmaster] Re: Re[2]: [PEAR-DEV] Tip to devs regarding Changelog and comments in bug system
| From: | Martin Jansen | Date: | Wed, 10 Nov 2004 12:01:09 +0000 |
| Subject: | Re: [pear-webmaster] Re: Re[2]: [PEAR-DEV] Tip to devs regarding Changelog and comments in bug system | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev php.pear.webmaster |
| Request: | Send a blank email to pear-dev+get-34285@lists.php.net to get a copy of this message | ||
On Wed Nov 10, 2004 at 11:4248AM +0000, Helgi Þormar wrote:
> $text = preg_replace('/(bug |#)([0-9]+)/', '<a
> href="/bugs/\\2">\\0</a>', $text);
>
> This should do both, but I don't want to exclude bugs which have the id
> between 1-9 :)
'/bug:? #?(\d+)/i' should work well.
--
- Martin Martin Jansen
http://martinjansen.com/