does anyone know how to tell if a string is in a certain format .eg. ####/#####

thanks