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 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
|