Change the regex of file name in createDoc