skip regexp compile if no pattern is provided