Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 95: Line 95:
//title=removeHTMLTags(title);
//title=removeHTMLTags(title);
//ans=ans.replace("<h3></h3>","");
//ans=ans.replace("<h3></h3>","");
-
h3=new RegExp(/<(h3).*>(\S+*)<\/\1>/);
+
h3=new RegExp(/<(h3).*>(.*)<\/\1>/);
alert(ans.match(h3));
alert(ans.match(h3));
var topics=ans.split(h3);
var topics=ans.split(h3);
-
 
+
return topics[0];
-
for (var i=0;i<topics.length;i++)return topics[i];
+
//for (var i=0;i<topics.length;i++)return topics[i];
return "Search Error";
return "Search Error";

Revision as of 00:03, 26 October 2008

Gallery Bricks Notebook Team Project Home