Код:
$sStr = @CRLF & '<body>' & @CRLF & '<div id="div1">... content ... ' & @CRLF & ' ...</div>' & @CRLF & '</body>'
$Test = StringRegExpReplace($sStr, '(?s).*<div id="div1">(.*)</div>.*', '\1')
ConsoleWrite($Test & @CRLF)
Из
справки:
Цитата:
(?s) - matches anything including newline. (by default "." don't match newline)
|