i have this list:
tests.skills
tests.instructions
tests.something
I want to test if the given string include any of the last two but not the first one, so i tried this:
var str = 'tests.instructions';
if( /tests\.[^skills].+/ig.test(str) ) {
console.log(1);
}
But it does not work, how can i test this?