Allowing user to specify file containing regex