在第一次出现字符串regex sublime text 2 find&;之后获取特定字符串;代替

在第一次出现字符串regex sublime text 2 find&;之后获取特定字符串;代替,regex,sublimetext2,Regex,Sublimetext2,? 我不知道SublimiteText2,但正则表达式如下所示: header.php' /include\u once\($pathtroot.header.php\);(.*)()/s 第一组是include和closing div之间的字符串,第二组是closing div本身。在find字段中: (?s)(标题\.php.+?) 在替换中(如果要将替换为),请执行以下操作: $1谢谢,s修饰符的正确语法让我大吃一惊 </div> header.php' /incl

?

我不知道SublimiteText2,但正则表达式如下所示:

header.php' 
/include\u once\($pathtroot.header.php\);(.*)()/s
第一组是include和closing div之间的字符串,第二组是closing div本身。

在find字段中:
(?s)(标题\.php.+?)

在替换中(如果要将
替换为
),请执行以下操作:
$1

谢谢,s修饰符的正确语法让我大吃一惊
</div>
header.php' 
/include_once\($pathToRoot.'header.php'\);(.*?)(<\/div>)/s