Strange warning: preg_match compilation warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 opening parenthesis of the preg_match function
call...(??)

Any help would be appreciated, googling simply brings up a load of
busted websites...

--Paul
-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

All Email originating from UWC is covered by disclaimer 
http://www.uwc.ac.za/portal/public/portal_services/disclaimer.htm 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux