比如我要截取 “$0.03/word”中的数字0.03

preg_match(‘/\$(.*)\/word/’, $rate, $matche);
if($matche[1])
{
$rate = $match[1];
}  

Also see:

Subscribe in reader