I need to write regex to Satisfy following condtion in laravel validation
1- Must not include more than 2 identical characters (for example: 111 or aaa)
2- Must not include more than 2 consecutive characters (for example: 123 or abc)
3- Must not use the name of the financial institution (for example: JPM, MORGAN, CHASE)
4- Must not be a commonly used password (for example: password1)
i tried this regex but not working
'required', 'regex:/^(?=.*[0-9])(?!.*?d{3})(?=.*[a-zA-Z])(?!.*?[a-zA-Z]{3})(?=.*[~!@#$%^&*()+-?])([a-zA-Z0-9~!@#$%^&*()+-?]{8,})$/']