Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$test = "12a34";
if ($test =~/^\d+$/) {
print "This is a number!\n";
}
else {
print "This is not a number!\n";
}
$test = "12a34";
if ($test =~/^[^\d]+$/) {
print "This string contains no numbers!\n";
}
else {
print "This string contains numbers!\n";
}
$test = "12a34";
if ($test =~/^[a-zA-Z_]+$/) {
print "This string contains only letters!\n";
}
else {
print "This string does not contains only letters!\n";
}