<?php if(!preg_match('/^[ckstu0-9]{4,9}$/', $variable)) { printf('%s ist keine gültige Eingabe', $variable); } ?>