Regex accent insensitive?

Viewed 21325

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 char class, but the problem is that this class doesn't match any accented char.

Then how to do this? I just don't want to put the most used accented letter in my pattern because we can theoretically put every accent on every letter.

So I though there is maybe a syntax, to say we want a case insensitive(or a class which takes in account accent), or a Regex option which allows me to be case insensitive.

Do you know something like this?

Thank you very much

7 Answers
Related