Hi,
I want to find a string as part of a long expression. I am using regexp match but with no success,
Actually I am trying to find what is in between <embed> and </embed>
can any one help me with this one. The code attached below
Code is attached below:
I want to find a string as part of a long expression. I am using regexp match but with no success,
Actually I am trying to find what is in between <embed> and </embed>
can any one help me with this one. The code attached below
Code is attached below:
Code:
<html>
<head>
<title></title>
<script language="javascript" type="text/javascript">
function validateFlashMoview()
{
var flashString='<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/ItXDJy1JHvE&hl=en"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/ItXDJy1JHvE&hl=en" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>';
var flashArray=flashString.match(/(embed*)+(*embed)/gi);
for (i=0;i<flashArray.length;i++)
{
alert(flashArray[i]);
}
//document.getElementById('flashMovie').innerHTML="'"+flashString+"'";
}
</script>
</head>
<body>
<div id="flashMovie"></div>
<input name="test" id="test" type="button" value="test" onclick="validateFlashMoview()">
<br>
</body>
</html>
Comment