を置き換える:基本的に「// < < >>の間に線を見つけようとイム
asdas
this should be there
:iとしては、O/Pをしたい いる
asdas
//<<<TAG
this should be removed
//TAG>>>
this should be there
//<<<TAG
T
>
asd
asd
//TAG>>>
"(
要素のタグ間で内容を一致させるために、PHPの正規表現が必要です。 <body>および</body> perl互換性preg_matchです。 は、これまで私が試した: // $content is a string with html content
preg_match("/<body(.|\r\n)*\/body>/", $content, $matches);
print_r($m
重複の可能性:私はいくつかのマルチラインCマクロを見てきました What’s the use of do while(0) when we define a macro? Why are there sometimes meaningless do/while and if/else statements in C/C++ macros? do { … } while (0) what is it
EDIT:私の問題が何だったかを答えることができます。私はさらに簡単な方法を示す別の答えを加えました。 私は単一の文字列を作成し、そこから複数行のテキストボックスがあります。 Dim wholeThing As String
Dim line as String
For Each line In txtMultiline.Lines
wholeThing = who