RE: [PHP] regex
| From: | Boaz Yahav | Date: | Sat, 02 Mar 2002 22:19:15 +0000 |
| Subject: | RE: [PHP] regex | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86920@lists.php.net to get a copy of this message | ||
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:paul79@optonline.net]
Sent: Thursday, February 28, 2002 4:31 AM
To: php-general@lists.php.net
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