Re: regex

From: Date: Thu, 28 Feb 2002 07:39:52 +0000
Subject: Re: regex
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86546@lists.php.net to get a copy of this message
In article <3C7D9668.5000302@optonline.net>, paul79@optonline.net (Paul A. Procacci) wrote: > 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. $string=preg_replace("/[^0-9]+=[^&]/", '', $QUERY_STRING); -- CC

« previous php.general (#86546) next »