これは私のHTMLコードです:
<img src="http://img.youtube.com/vi/ErIRt52MOkE/0.jpg" class="mceItem" alt="ErIRt52MOkE"/>
そして、このコードを次のように変換します。
<iframe title="YouTube video player" width="640" height="390" src="http://www.youtube.com/embed/ErIRt52MOkE" frameborder="0" allowfullscreen></iframe>
これが私のパターンです: ( Message: preg_replace() [function.preg-replace]: Unknown modifier 'v'
)
<img(?=[^>]+?class="mceItem")(?=[^>]+?alt="[\w]+?")[^>]+?img.youtube.com/vi/([\w]+?)/0.jpg[^>]*?/>