array filter to perform regex

Trying to filter array of objects to return a subset where a string property matches the regex. i am using a filter function on array and in the lambda I have the following but i am having problems getting Objects like RegExp or string methds like match to work

var mystr = $this._tags.tag_name.matches;

const re = /^[^ $]/

return mystr.match(re) === false;

1 reply