forgot to compile the regex... oops.  Also changed it a bit to be safer