Regular expression seems to cause problems in new file validator function

Don't take pull request.  Made in error.