ereg + Fed Ex Rate URL Question

From: Date: Mon, 14 Aug 2000 16:34:06 +0000
Subject: ereg + Fed Ex Rate URL Question
Groups: php.general 
Request: Send a blank email to php-general+get-11633@lists.php.net to get a copy of this message
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? -- Christopher C.M. Allen http://design.driver8.org/ Email: callen@driver8.org

« previous php.general (#11633) next »