<pre name="code" class="html">is outside location 怎么匹配?
. 匹配除换行外的所有单个字符,通常与*合用
? 匹配0个或1个该前一个字符
.* 所有任意数量字符。 与前一字符结合,可不出现字符。
+: 一个或多个相同的前导字符(模式). 如:/de+f/ 匹配的是def,deef,deeeef等。
/*************************
"is outside location"
表达式;
\"\s*(?<str>(\S+\s+).*)\"
输出:
{
"str": [
[
"is outside location"
]
]
}
或者;
\"\s*(?<str>(\S+.*\s+.*))\"
转载于:https://www.cnblogs.com/zhaoyangjian724/p/6199242.html