Password regexp in javascript
Password must contain five (5) capital letters, six (6) symbols and two hyphens (-) in any order.
I've wrote this regexp, but it doesnt work.
const passwordRegexp = /^[A-Z]{5}[!@#$%^&*]{5}[/-]{2}$/g;
console.log(passwordRegexp.test('FG-FGB-@$%^*'));