Re: [PHP] Strange warning: preg_match compilation warning

2007-11-05 Thread Paul Scott
On Mon, 2007-11-05 at 12:08 -0500, Daniel Brown wrote: > You canceled-out the final closing param with a backslash here: > (AVOIR \) > Oh geez, thanks! How embarrassing... I suppose that's what you get for coding on long haul flights... Thanks! --Paul All Email originating from

Re: [PHP] Strange warning: preg_match compilation warning

2007-11-05 Thread Daniel Brown
On 11/5/07, Paul Scott <[EMAIL PROTECTED]> wrote: > > Does anyone have any idea as to why the following line is generating a > warning? > > } else if (preg_match('/^([0-9]{4})-([0-9]{4})? (AVOIR \)$/', $content) > === 0) { > > The warning text is as follows: > > Warning: preg_match(): Compilation f

[PHP] Strange warning: preg_match compilation warning

2007-11-05 Thread Paul Scott
Does anyone have any idea as to why the following line is generating a warning? } else if (preg_match('/^([0-9]{4})-([0-9]{4})? (AVOIR \)$/', $content) === 0) { The warning text is as follows: Warning: preg_match(): Compilation failed: missing ) at offset 34 in ... Offset 34 seems to be the op