Re: Problems with Date.php 1.3.1 beta
| From: | Pierre-Alain Joye | Date: | Mon, 04 Aug 2003 13:13:50 +0000 |
| Subject: | Re: Problems with Date.php 1.3.1 beta | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19254@lists.php.net to get a copy of this message | ||
On Mon, 4 Aug 2003 15:11:57 +0200
LIMBOURG Arnaud <arnaud.limbourg.prestataire@cegetel.fr> wrote:
> > > elseif (preg_match('/\d{8}/',$date)) {
> > > $this->setDate($date.'000000',DATE_FORMAT_TIMESTAMP);
> > > }
> >
> > preg_match('/$\d{8}^/',$date) is the way. Thanks to have reported
> > this bug.
>
> $ is for end of line while ^ is for beginning of line, didn't you
> invert those two in your mail ?
I did, once I did not copy/paste :)
pierre