Regex accent insensitive?

后端 未结 7 1732
天命终不由人
天命终不由人 2020-12-09 17:38

I need a Regex in a C# program.


I\'ve to capture a name of a file with a specific structure.

I used the \\w cha

7条回答
  •  渐次进展
    2020-12-09 18:21

    Don't shoot me down for this, but if you're just trying to match a filename, then why not go the other way and use excluded characters?

     [^<>:"/\|?*]
    

提交回复
热议问题