how to check for $ regex in javascript code example Example: js match true false /match/.test('string match') // true