Re: preg_match problem

From: Date: Mon, 21 Aug 2006 19:13:35 +0000
Subject: Re: preg_match problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240962@lists.php.net to get a copy of this message
On 21/08/06, afan@afan.net <afan@afan.net> wrote:
hi. I have to check if the script file belongs to any ov form1.php to form6.php files. Need something like: preg_match('/form*.php/', $_SERVER['PHP_SELF']) wher * kan be any number between 1 and 6. Thanks for any help. the pattern is form[1-6]+\.php.
-- http://www.web-buddha.co.uk http://www.projectkarma.co.uk

« previous php.general (#240962) next »