I have this password field on admin
But after upgrading php I got this error
preg_match(): Compilation failed: escape sequence is invalid in character class at offset 46
I have this validator pattern
$rules = [
'firstname' => 'required|max:255',
'lastname' => 'required|max:255',
'email' => 'required|email|unique:tblClient,fldClientEmail',
'password' => 'required|min:8|regex:/^.*(?=.{1,})(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[\d\X]).*$/'
];
is there changes needs to apply on my regex?
Note: original setup Laravel Framework version 5.1.46 (LTS) PHP 5.6
But Project Manager asks me to upgrade to PHP 7.4
Current setup as of now is Laravel Framework version 5.1.46 (LTS) php7.4