Hi there, and thanks for clicking my thread

I have a problem I cant work out what the best way to resolve it would be.

I basically want to mass edit all wordpress posts on my blog (6,801)

They are all youtube videos so they look kind of look like this:

<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/c5CcWoSzYj4?fs=1" /><param name="allowFullScreen" value="true" /> <embed type="application/x-shockwave-flash" width="425" height="355" src="http://www.youtube.com/v/c5CcWoSzYj4?fs=1&amp;rel=0" allowfullscreen="true"></embed></object>
I want to pull that youtube url then replace it all with this code

<script type='text/javascript' src='jwplayer.js'></script>

<div id='mediaspace'>This text will be replaced</div>

<script type='text/javascript'>
'flashplayer': 'player.swf',
'file': 'http://www.youtube.com/v/c5CcWoSzYj4?fs=1',
'controlbar': 'bottom',
'width': '470',
'height': '320'

Would this be possible? I have basic php/html knowledge but from what i understand i need.

Some sort of script to read the url inside the <object> tag then replace it all with the new jwplayer code (looks so much better)

Thanks for reading, any thought towards this is much appreciated.