Replacing illegal character in fileName

后端 未结 7 1927
情书的邮戳
情书的邮戳 2020-12-24 10:39

In Java, I\'ve a File-Name-String. There I want to replace all illegal Characters with \'_\', but not a-z, 0-9, -,. and <

相关标签:
7条回答
  • 2020-12-24 11:19

    If you want to use more than like [A-Za-z0-9], then check MS Naming Conventions, and dont forget to filter out "...Characters whose integer representations are in the range from 1 through 31,...".

    0 讨论(0)
提交回复
热议问题