Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 97: Line 97:
h3=new Regexp("/<(h3).*>(.*)<\/\1>/");
h3=new Regexp("/<(h3).*>(.*)<\/\1>/");
var titlepos=ans.search(h3);
var titlepos=ans.search(h3);
-
if (titlepos<0) return 'Titles not found";
+
if (titlepos<0) return "Titles not found";
var endpos=ans.indexOf(h3,titlepos+1);
var endpos=ans.indexOf(h3,titlepos+1);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);
if (endpos<0) return ans.substr(titlepos,ans.length-titlepos);

Revision as of 23:14, 25 October 2008

Gallery Bricks Notebook Team Project Home