problem in parsing
| From: | J-E-N | Date: | Fri, 09 Aug 2002 09:24:49 +0000 |
| Subject: | problem in parsing | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21074@lists.php.net to get a copy of this message | ||
if i have the following script,
$exp = "description=whatever\namount=23.50\nquantity=2\n";
if (eregi("(amount)(.*)(\n)", $exp,$amt)) {
print $amt[0];
}
the output will be
namount=23.50\nquantity=2\n
what will i do so that the output value will be 23.50 only.
thanks =)
jen