Team:Washington/PartInfo Replacer
From 2009.igem.org
(Difference between revisions)
(New page: <html> <script type="text/javascript"> function replace_partinfo() { var src = document.getElementById("uw_src").value; var dst = src.replace(/<partinfo>([^<]+)<\/partinfo>/g, "[[http:...) |
|||
Line 3: | Line 3: | ||
function replace_partinfo() { | function replace_partinfo() { | ||
var src = document.getElementById("uw_src").value; | var src = document.getElementById("uw_src").value; | ||
- | var dst = src.replace(/<partinfo>([^<]+)<\/partinfo>/g, " | + | var dst = src.replace(/<partinfo>([^<]+)<\/partinfo>/g, "[http://partsregistry.org/wiki/index.php/Part:$1 $1]"); |
document.getElementById("uw_dst").value = dst; | document.getElementById("uw_dst").value = dst; | ||
} | } |
Latest revision as of 03:08, 15 October 2009