added invert option to regex selector