📌  相关文章
📜  有效的文件名正则表达式 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:41.055000             🧑  作者: Mango

代码示例1
/^(?!\.)(?!com[0-9]$)(?!con$)(?!lpt[0-9]$)(?!nul$)(?!prn$)[^\|\*\?\\:<>/$"]*[^\.\|\*\?\\:<>/$"]+$/

Must not be empty.
Must not start with .
Must not be com0-com9, con, lpt0-lpt9, nul, prn
Must not contain | * ? \ : < > $
Must not end with .