I have a working regex pattern in C# .NET which works great as expected. I just want to update this pattern to make sure any string that is compared with this regex is not start with any special Characters.
My Existsing Regex
(@"^(?=.*[A-Z])(?=.*[!\{\}\[\]@#$%^&*()+_<>~-])(?=.*[0-9])(?=.*[a-z]).{8,15}$");
For Example
TestHey@123! - Pass
@TestHey123! - This should fail because special character at the beginning.
Password must contain atleast 1 Uppercase character1 Lowercase character1 Numerical digit and
1 Special character like ~!@$%^&*()_+-<>[]{} – sgl Apr 26 '23 at 17:52