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
