Regex accent insensitive?

后端 未结 7 1693
天命终不由人
天命终不由人 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:35

    Did you try . it should: Matches any single character except a newline character. \w: Matches any word character including underscore. Equivalent to "[A-Za-z0-9_]". So it makes sense that accented letters are excluded.

    http://www.mikesdotnetting.com/Article/46/CSharp-Regular-Expressions-Cheat-Sheet

提交回复
热议问题