write rule key vals to data/patternMatches.txt upon rule receipt