c# - Regex accent insensitive? -



c# - Regex accent insensitive? -

i need regex in c# program.

i've capture name of file specific structure.

i used \w char class, problem class doesn't match accented char.

then how this? don't want set used accented letter in pattern because can theoretically set every accent on every letter.

so though there maybe syntax, want case insensitive(or class takes in business relationship accent), or "regex" alternative allows me case insensitive.

do know this?

thank much

case-insensite works me in example:

string input =@"âãäåæçèéêëìíîïðñòóôõøùúûüýþÿı"; string pattern = @"\w+"; matchcollection matches = regex.matches (input, pattern, regexoptions.ignorecase);

c# regex diacritics non-ascii-characters

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -

ms access - C# - Using OleDbParameter on table name -