Re: ereg + Fed Ex Rate URL Question

From: Date: Wed, 16 Aug 2000 17:26:43 +0000
Subject: Re: ereg + Fed Ex Rate URL Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-12071@lists.php.net to get a copy of this message
In article <39981F7E.BEF05168@driver8.org>, callen@driver8.org (callen) wrote: This seems to work when I tried it. What are getting out as output of your matched args ($arr array elements)? remember too that if you are echoing the results of the array registers to a browser that the first and the last elements representing the tags will not display unless you use htmlspecialchars(). jeff > I ma sending a query to > "http://grd.fedex.com/cgi-bin/..." and I am > receiving back a html file that contains the line > <!TotalCharges>4.71<!/TotalCharges> > > I can't seem to land this right in my reg-exp: > ... > if ( ereg ( > "^(<!TotalCharges>)([0-9]{1,4})(\.)([0-9]{1,2})(<!/TotalCharges>)$", > $buffer, $arr)) { > ... > > Can anyone straighten out this expression so that it matches that line? > > > >

« previous php.general (#12071) next »