updated rule regex