0
私は<img>
タグを取得するにはは
<div>some text</div><img src="http://abc.com/a.jpg"/><div>here will be long text
can be multiple line breaks again</div><img src="http://a.com/a.jpg"/><div>here will be other text
blah blah</div>
に変換する必要
some text [http://abc.com/a.jpg] here will be long text
can be multiple line breaks again [http://a.com/a.jpg] here will be other text
blah blah
のようないくつかのテキストは、私が
some text<img src="http://abc.com/a.jpg"/>here will be long text
can be multiple enters again<img src="http://a.com/a.jpg"/>here will be other text
blah blah
で、その結果、
<img src="$1"/>
で
\[(.*?)\]
を交換して
ただし、テキストをどのようにラップするかわかりません<div>
にあります。
私はここでRegexKitLite
で
\[(.*?)\]
のすべての出現を置き換えます。私はすでにこの論理を使っていました。 –