# use strict; ... if (($Delay_id =~ /\(\d\d/) || ($Delay_id =~ /\(\d\d\d/)){ ... }