Bug 3788/dev/correct regexp for rule