regex testing harness for mats testing