I would like to get whatever characters not matching the regex. E.g. "abc123" would return "123", [1,2,3] or something similar.
Is there any built in way to achieve this?
$('input').on('keyup', function(){
    var valid = /^[a-zA-Z\s*]*$/.test(this.value);
    console.log(valid);
});
Another solution in case someone is intrested:
var x = this.value.split('').filter(function(v){
    return !/[a-zA-Z\s*]+/.test(v);
});

