var rl=/[0-9]/g;
console.log(rl.test(2));
rl.lastIndex = 0;
console.log(rl.test(2));
rl.lastIndex = 0;
console.log(rl.test(2));
console.log(
a
.split(/\r?\n/)
.filter(function(line) {
return line.match(/^[^#]/);
})
);