Regex for complex password : <p>This question has obviously been asked many times regarding how to make a regex using c# to meet the requirements. I require a regex that..</p>

<ul>
<li>Is at least 8 characters long</li>
<li>At least 1 upper case character</li>
<li>1 number</li>
<li>1 special character !@#$%^&amp;*()</li>
<li>password not the same as the login name(easy to check)</li>
<li>not contain more than 2 recurring characters e.g. aaa123</li>
</ul>

<p>Trying to work this out myself i was thinking to search for how to do each 1 of these requirements one by one and build the regex up as i go. Is this the right approach?</p>

<p>I feel like i could be missing something. I am reading up about regex expressions and how to create a complex one. Your feedback much needed.</p>

<p>Thanks.</p>
