let rules be just the regexp itself