View Single Post
Old 01-15-2009, 12:27 AM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
Quote:
Originally Posted by RayVega View Post
Thanks bro...right on target. problem solved!
although, cos I know what you're doing the agent id is a 10 digit string and will only occur once, so to be absolutely sure....

if(preg_match('/agentid\=(\d{10})&listingid/',$str,$matches)){

cos otherwise, the regexp given would pick up also:

$a="...$agentid=1&listingid...etc.";

<- my invoice for this wonderful piece of insight
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 01-15-2009 at 12:30 AM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote