Hi every one, im trying to fix the flash overlap using regular expressions. here is an example of markup im trying to convert to my needs
<object width="440" height="300" data=
"http://www.youtube.com/v/dMH0bHeiRNg&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1"
type="application/x-shockwave-flash">
<param name="allowScriptAccess" value="never" />
<param name="allowNetworking" value="internal" />
<param name="wmode" value="window" />
<param name="movie" value=
"http://www.youtube.com/v/dMH0bHeiRNg&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" />
<!--[if IE]><embed width="440" height="300" src="http://www.youtube.com/v/dMH0bHeiRNg&amp;color1=0xb1b1b1&amp;color2=0xd0d0d0&amp;hl=en_US&amp;feature=player_embedded&amp;fs=1" allowScriptAccess="never" allowNetworking="internal" wmode="window"><![endif]-->
</object>
i want a function using regluar expressions that
1) checks presence of <param name="wmode" .....
if it exists... it forcefully sets value to 'opaque'. if doesn't exists it adds it to the above code.
I need this function to solve flash overlap problems of 'html' code saved in database