array filter to perform regex

Options

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;

Tagged:

Answers

  • evanwaller
    Options

    Mohan,

    Try the "regex_matches" filter in the response section in order to solve this issue. Check out the image below.

    Hope this helps.

    -Evan