write regex directly into pac