How to put these 2 IF statements into 1, with regex?

From: Date: Mon, 01 Jul 2002 01:29:18 +0000
Subject: How to put these 2 IF statements into 1, with regex?
Groups: php.general 
Request: Send a blank email to php-general+get-104609@lists.php.net to get a copy of this message
Hi People, I was wondering if there is anyway to combine these two IF statements into one: if (preg_match("@siteUserList.cgi?group=site177@", $QUERY_STRING)) and: if (preg_match("@siteUserList.cgi?group=site177&@", $QUERY_STRING)) In other words I need it to match if the query string HAS or DOESNT HAVE a "&" at the end. Thanks.

« previous php.general (#104609) next »