9 Einträge, 1 Seite |
1
2
3
4
5
6
if( ($check =~ /\S([a-zA-Z]{7}[0-9]{1})(\b$vorname\b)(\b$nachname\b))[^äöüÄÖÜ]/i) ) {
print "super";
}
else {
print "\n\n\n\t\tPasswort nicht gueltig!\n\n\n";
}
1
2
3
4
5
6
7
8
9
10
11
if ($check =~ /[a-z]/ and
$check =~ /[A-Z]/ and
$check =~ /[0-9]/ and
$check !~ /\b$vorname\b/ and
$check !~ /\b$nachname\b/ and
$check =~ /^[a-zA-Z0-9]+$/
) {
print "super";
} else {
print "Passwort ungültig.";
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
print "Vorname: "; chop ($vorname=<STDIN>);
print "Nachname: "; chop ($nachname=<STDIN>);
print "Passwort: "; chop ($passwort=<STDIN>);
if ($passwort =~ /[a-z]/ and
$passwort =~ /[A-Z]/ and
$passwort =~ /[0-9]/ and
$passwort !~ /\b$vorname\b/ and
$passwort !~ /\b$nachname\b/ #and
#$passwort =~ /^[a-zA-Z0-9]+$/
) {
print "super";
}
else {
print "Passwort ungültig.";
}
9 Einträge, 1 Seite |