Add a rule for matching packages by regex.

Should fix #3 for @sochotnicky.