📅  最后修改于: 2022-03-11 14:53:41.730000             🧑  作者: Mango
// insert .(dot) before each a-z letter
// [a-z] = range, {1} = group to catch
$string = preg_replace("/([a-z]{1})/", '.$1', $string);