swapped regex error vars