📜  多行点匹配php代码示例

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

代码示例1
// This problem can be solved adding the “s” modifier to the regular
// expression. With this modifier, the “.” wildcard character matches 
//any possible character in the string, including newlines:

preg_match("#(.*)#s",$document,$matches)