apply regex at startup