Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 101: Line 101:
//h3=new RegExp(/<(h3).*>\S*<\/\1>/i);
//h3=new RegExp(/<(h3).*>\S*<\/\1>/i);
h3=new RegExp(/<h3[^>]*>((?:.|\n)*)<\/h3>/i);
h3=new RegExp(/<h3[^>]*>((?:.|\n)*)<\/h3>/i);
-
 
-
var titles=ans.match(h3);
 
-
 
-
for (var i=0;i<titles.length;i++)
 
-
{
 
-
if (removeHTMLTags(trimStr(titles[i]))==removeHTMLTags(trimStr(title))) return titles[i+1];
 
-
}
 
var topics=ans.split(h3);
var topics=ans.split(h3);
Line 114: Line 107:
if (removeHTMLTags(trimStr(topics[i]))==removeHTMLTags(trimStr(title))) return topics[i+1];
if (removeHTMLTags(trimStr(topics[i]))==removeHTMLTags(trimStr(title))) return topics[i+1];
}
}
-
 
return "Search Error";
return "Search Error";

Revision as of 00:56, 26 October 2008

Gallery Bricks Notebook Team Project Home