gldtn
Well-known member
Do your posts contain actual HTML, like the string you posted?If so, you could try this search expression:HTML:<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/DWD5Jr4hS9I&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.youtube.com/v/DWD5Jr4hS9I&hl=en&fs=1" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"></embed></object>
Find:
Replace:Code:#<object[^>]+>(<param[^>]+></param>)+<embed src="http://www.youtube.com/v/(\w+)[^"]+"[^>]+></embed></object>#siU
I haven't tested that, but it should work.Code:[media=youtube]\2[/media]
It found all the post, but when I clicked on save it replaced everything with a
Code:
[media=youtube]A # OR LETTER HERE[/media]
I'm guessing that can't be fixed now!