regex needs to be fixed for pdf-reader