The notany() function returns a match if the character that is being evaluated does not match any character in the <character_string>.

notany(<character_string>)

In the following script, the notany() function matches the first three characters of the input file. The next character causes the pattern to fail and the DEFAULT rule runs.

ASL Script (notany_match.asl):
START {
 a:notany("cx")
}
do {
 print("Matched with ".a);
}
DEFAULT {
 ..eol
}
do {
 print("Failed match");
}
Input (notany_match.txt):
bbacbxy
Ouput:
$ sm_adapter --file=notany_match.txt notany_match.asl
Matched with b
Matched with b
Matched with a
Failed match
$