Team:Warsaw/JSTest

From 2008.igem.org

(Difference between revisions)
Line 100: Line 100:
{
{
//h3=new RegExp(/<(h3).*>\S*<\/\1>/i);
//h3=new RegExp(/<(h3).*>\S*<\/\1>/i);
-
h3=new Regex(@"<\s*(?<tag>" + "h3" + @")[^>]*>(?<content>.*?)<\s*/\s*\k<tag>\s*>", RegexOptions.IgnoreCase);
+
h3=new RegExp(/<h3[^>]*>((?:.|\n)*)<\/h3>/i);
var titles=ans.match(h3);
var titles=ans.match(h3);

Revision as of 00:55, 26 October 2008

Gallery Bricks Notebook Team Project Home