function BadQuoteTest (strInput) { strInput = strInput.replace(/"/gi, "'"); // aka aaa; /* This stuff is commented out so should be parsed out strInput = strInput.replace(/x/gi, "y"); // aka bbb; */ return (strInput); } function splitTest (strInput) { var pattern = /\s*;\s*/gi; return (strInput.split (pattern)); // Test } function splitTestWithLimit (strInput) { return (strInput.split (/\"/gi, 3)); // Test } function matchTest () { var strText = 'Cool text'; strText = strText.match (/oo/gi); // Test alert (strText); } function searchTest () { var strText = "Search text"; // Test strText = strText.search (/x/gi); // Test alert (strText); }