int preg_match ( string $pattern , string $subject [, array $matches [, int $flags ]] )
string $pattern 是一个
字符串,所以可以先计算出这个串存入一个变量里
$star='a';
$stop='c';
$info='a1b2c3';
$pattern='/'.$star.'(.+?)'.$stop.'/';
preg_match($pattern,$info,$result);
print_r($result[1]);