main
parent
21eab99bc5
commit
b600937a62
|
|
@ -31,8 +31,9 @@ public class Passwort_Check {
|
||||||
// [^/r] schließt Carriage Return aus
|
// [^/r] schließt Carriage Return aus
|
||||||
// [^/n] schließt Line Feed aus
|
// [^/n] schließt Line Feed aus
|
||||||
// [^A-Za-z0-9\\x00-\\x1F\\x7F] [^A-Za-z0-9\t\r\n]
|
// [^A-Za-z0-9\\x00-\\x1F\\x7F] [^A-Za-z0-9\t\r\n]
|
||||||
|
String sonderzeichenRegex = "[^A-Za-z0-9\\x00-\\x1F\\x7F]";
|
||||||
return passwort.matches(".*[^A-Za-z0-9\\x00-\\x1F\\x7F].*[^A-Za-z0-9\\x00-\\x1F\\x7F].*[^A-Za-z0-9\\x00-\\x1F\\x7F].*");
|
|
||||||
|
return passwort.matches(".*"+sonderzeichenRegex+".*"+sonderzeichenRegex+".*"+sonderzeichenRegex+".*");
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue