leofly 2020-02-07 11:30:29

匹配win10文件命名中不允许的字符

regex regex
let pattern = /[\\\\/:\\*\\?"< >\\|'\\.]/g;
str = str.replace(pattern, "_");

评论

Home - Wiki
Copyright © 2011-2025 iteam. Current version is 2.142.1. UTC+08:00, 2025-04-05 03:16
浙ICP备14020137号-1 $Map of visitor$