diff --git a/registrierung_erfolgreich.php b/registrierung_erfolgreich.php index e2f105a..a077e7e 100644 --- a/registrierung_erfolgreich.php +++ b/registrierung_erfolgreich.php @@ -35,8 +35,8 @@ if(isset($_POST['Registrieren'])){ || !preg_match("/^([A-ZÄÖÜa-zäöüß]{2,}[ -]?)+$/", $nachname) || !preg_match("/[a-zäöüß]$/", $nachname) || preg_match("/[A-ZÄÖÜ][a-zäöüß]+[ ]+[A-ZÄÖÜ][a-zäöüß]+/", $nachname) - || !preg_match("/^(von( der)?|zu)[ ][A-ZÄÖÜ]|^[A-ZÄÖÜ]/", $nachname) - || !preg_match("/(^(von( der)?|zu)[ ][A-ZÄÖÜ][a-zäöüß]+|^[A-ZÄÖÜ][a-zäöüß]+)([-][A-ZÄÖÜ][a-zäöüß]+)?$/", $nachname) + || !preg_match("/^(von( der)?|zu|van)[ ][A-ZÄÖÜ]|^[A-ZÄÖÜ]/", $nachname) + || !preg_match("/(^(von( der)?|zu|van)[ ][A-ZÄÖÜ][a-zäöüß]+|^[A-ZÄÖÜ][a-zäöüß]+)([-][A-ZÄÖÜ][a-zäöüß]+)?$/", $nachname) || preg_match("/(\w)\1{2,}/", $nachname)) { header("Location: registrierung_wiederholen.html");