how to check string uppercase or lowersace using regex javascript

JavaScript
var regex = /^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!#\*\?])(?=.{8,})/;
Source

Also in JavaScript: