blob: 50f88e9a72a8dab04a54ab93dd8e7b731913fc00 [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
// The input is too small for trigram mega match to be done on it, so it should properly fall back to the regex engine
var s = "GGCCGGGTAAAGTGGCTCACGCCTGTAATCCCAGCACTTTACCCCCCGAGGCGGGCGGA";
writeLine(s.match(/[cgt]gggtaaa|tttaccc[acg]/ig));
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Helpers
var web;
function writeLine(s) {
if (web)
document.writeln(s + "<br/>");
else
WScript.Echo("" + s);
}
function safeCall(f) {
try {
f();
}
catch (ex) {
writeLine(ex.name + ": " + ex.message);
}
}