📜  php 使用正则表达式在每个字母前插入字符 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:41.730000             🧑  作者: Mango

代码示例1
// insert .(dot) before each a-z letter
// [a-z] = range, {1} = group to catch
$string = preg_replace("/([a-z]{1})/", '.$1', $string);