adding new regexp redirect function