Re: [PHP] help with regex in preg_match();

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 01:37 PM, <[EMAIL PROTECTED]> wrote: > I got this line that is relly giving me a pain..: > > if (preg_match("@siteUserList.cgi\?group=site177(&?)@", > $QUERY_STRING)) > > As you can see it just matches the query string when it looks like > this: siteUserList.cgi?grou

Re: [PHP] help with regex in preg_match();

2002-07-01 Thread Mirza Muharemagic
Hi, something like this: $QUERY_STRING = "siteUserList.cgi?group=site177&2345"; if (preg_match("#siteUserList.cgi\?group=site177(&?[\d]*)#",$QUERY_STRING,$array11)) { echo "found: $array11[0]$array11[1]"; } Mirza [EMAIL PROTECTED] 01.07.2002 19:37 > H