Matches valid passwords that require letters, numbers and special characters that do not start or end with spaces.