I would like to update thousands records in my SQL dB.
my post_content from my_table is like:
blablabla htt*://vimeo.com/12345678 blablabla
or
blablabla htt*://vimeo.com/12345678 blablabla htt*://vimeo.com/12345678 (blablabla)
and I would like to replace the
htt*://vimeo.com/12345678
by
<iframe src="htt*://player.vimeo.com/video/12345678?title=0&byline=0&portrait=0" width="400" height="300" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe>
The problem is that 12345678 is different on each post...and I have to replace code before this number and add code after this number.
Replace code before the number is easy, but after, I don't know how to do it? How to say to the replace function: find htt*://vimeo/12345678 and point after the numbers and add "?title=0&a...< /iframe>.
Any idea?