make regexp dynamic