configure regex