removed regex.h---the #include was not needed