I have the following regex expression, for whatever reason I keep getting an error when using this with PCRE2. I'm unsure what would be causing the error.
/^.(?=.{1,})(?=.[A-Z])(?=.[0-9])(?=.[dX])(?=(?:.[!@#$%^&()\-_=+{}[]|;:,.]){1,}).{8,}$/
The error in the log is:
exception: preg_match(): Compilation failed: escape sequence is invalid in character class at offset 43
See Question&Answers more detail:os