$theVar = "This is a test";
if ($theVar =~ /is [aA] tes/) {
(print "Match One\n"); # Would Match
}
$theVar = "This is A test";
if ($theVar =~ /is [aA] tes/) {
(print "Match Two\n"); # Would Also Match
}
$theVar =~ [0-9] # same as [0123456789] $theVar =~ [a-z] # same as [abcdefghijklmnopqrstuvwxyz] $theVar =~ [A-Z] # same as [ABCDEFGHIJKLMNOPQRSTUVWXYZ] $theVar =~ [0-9a-zA-Z] # All of the above $theVar =~ [aeiou24680] # Vowels and even digits $theVar =~ [a-kA-K] # A thru K in alphabet, ignore case