if (/tts\s0./) {print;} if (/[tts30]/] {print;} or somthing like if (/^[23]/) {print;}