S
sri_san
Hello,
I am trying to parse a HTML page and want to replace the input
element
The following code fails all the time.
var ex = "<input type=\"hidden\" name=\"__VIEWSTATE\"
id=\"__VIEWSTATE\"
value=\"/wEPDwULLTE2NjEyNTI0MThkGAEFEHNlY3Rpb25zR3JpZFZpZXcPZ2QN271==
/>";
var regEx = new RegExp("<\s*input[^>]*>(.*?)\s*/> ");
if (ex.match( regEx))
{
alert('match');
}
else
{
alert ('no match');
}
any help would be great!
Thanks,
Srini.
I am trying to parse a HTML page and want to replace the input
element
The following code fails all the time.
var ex = "<input type=\"hidden\" name=\"__VIEWSTATE\"
id=\"__VIEWSTATE\"
value=\"/wEPDwULLTE2NjEyNTI0MThkGAEFEHNlY3Rpb25zR3JpZFZpZXcPZ2QN271==
/>";
var regEx = new RegExp("<\s*input[^>]*>(.*?)\s*/> ");
if (ex.match( regEx))
{
alert('match');
}
else
{
alert ('no match');
}
any help would be great!
Thanks,
Srini.