Added regex rules for path matching