Maybe this can help :

pick up an array of variables from a query string such as:
http://www.archipro.com/test.php?state=AB&state=BC 

http://www.weberdev.com/index.php3?GoTo=get_example.php3?count=3265

Sincerely

      berber

Visit http://www.weberdev.com Today!!! 
To see where PHP might take you tomorrow.



-----Original Message-----
From: Paul A. Procacci [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 4:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regex


Hey all,
   I'm been programming in php for a while, but I'm stumpt with this 
one.  You know the funny thing?  It's probably really simple.  Anyway 
here it is.  Assume I have this query string:

ticket_id=3&change_name=status&change_value=3&ticket_id=3&2=&1=&

And all I want is 2=&1=&.  Well, the closest I came was :

$string = preg_replace("/[^0-9]+\=/", "", $QUERY_STRING);  Assuming 
QUERY_STRING was the data.

Please help

Thanks Much,
Paul



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


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

Reply via email to