function test (str) { // A comment. alert ("test"); var reForwardSlash = /\//; var reBackslash = /\\/; if (str.match(regexForwardslash) && str.match(regexBackslash)) { return true; } }