This may seem like a no-brainier, but the thing is I wont know the length of the string in advance. My client has a pre-made/bought Blog which adds youtube videos into posts via its CMS - basically I want my function to search a string like the following:
<embed width="425" height="344" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.youtube.com/somevid"></embed>
and regardless of the current width and height values, I want to replace them with my own constants e.g width="325" height="244". Could someone kindly explain the best way to go about this?
Many thanks in advance!!