在PHP的正则表达式中,u 修饰符用于启用多行模式
<?php$text = "这是一段多行文本,\n我想提取其中的标题。";$pattern = "/^标题:(.*)$/m";preg_match($pattern, $te……表达式行符修饰符
CodePHP例子13