How to check if string has at least 6 characters, one capital letter and one number? - Javascript : <p>as the title says I would like to check if a string contain at least 6 characters, one capital letter and one number, is required to use a <code>regex</code> or there is a simplier way to achieve this?</p>

<p>Example of string: <code>Hello7</code></p>

<p>I need help to create the regex to do this, can you give me some help? at least how to say that I required minimum a specific number of characters, thanks.</p>
