regex

From: Date: Thu, 28 Feb 2002 02:31:04 +0000
Subject: regex
Groups: php.general 
Request: Send a blank email to php-general+get-86545@lists.php.net to get a copy of this message
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

« previous php.general (#86545) next »