Re: preg_match not working
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: preg_match not working

From: Toby Inkster <usenet200603@tobyinkster.co.uk>
Date: Tue Mar 07 2006 - 00:36:06 CET

Andrew Richardson wrote:

> $result = preg_match("[0-9][0-9]","12")
>
> gives me an error of: Unknown modifier '['

$result = preg_match("/[0-9][0-9]/","12");

-- 
Toby A Inkster BSc (Hons) ARCS
Contact Me  ~ http://tobyinkster.co.uk/contact
Received on Mon May 1 02:28:34 2006