yasiraq
03-09-2009, 05:05 AM
Hi there,
Can you plz convert me the following JScript function into its equivalent VBScript.
-----------------------------------------------------
function GetHTMLDocTitle(s) {
//returns the text between the Title tags
s = "" + s + "";
//this pattern returns the title of an html document.
var re = /(\<TITLE\>)(\s*)(.+)(\s*)(\<\/TITLE\>)/i
var arr = re.exec(s);
return RegExp.$3;
}
--------------------------
Thanks
Can you plz convert me the following JScript function into its equivalent VBScript.
-----------------------------------------------------
function GetHTMLDocTitle(s) {
//returns the text between the Title tags
s = "" + s + "";
//this pattern returns the title of an html document.
var re = /(\<TITLE\>)(\s*)(.+)(\s*)(\<\/TITLE\>)/i
var arr = re.exec(s);
return RegExp.$3;
}
--------------------------
Thanks