Thread Prüfen, ob Zahl oder Prozentzahl (13 answers)
Opened by stb2050 at 2004-01-17 18:03

[E|B]
 2004-01-17 18:08
#79230 #79230
User since
2003-08-08
2561 Artikel
HausmeisterIn
[Homepage] [default_avatar]
HiHo!

Code: (dl )
1
2
3
4
$string = "f4\%";
if($string !~ /^\d{1,3}\%$|^\d+$/){
print "Ungueltig!";
}
\n\n

<!--EDIT|[E|B]|1074356179-->
Gruß, Erik!

s))91\&\/\^z->sub{}\(\@new\)=>69\&\/\^z->sub{}\(\@new\)=>124\&\/\^z->sub{}\(\@new\)=>);
$_.=qq~66\&\/\^z->sub{}\(\@new\)=>93~;for(@_=split(/\&\/\^z->sub{}\(\@new\)=>/)){print chr;}

It's not a bug, it's a feature! - [CGI-World.de]

View full thread Prüfen, ob Zahl oder Prozentzahl