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

iphone - Dismissing a UIAlertView -

ios - Fragment Shader GLSL for texture, color and texture/color -

c# - Why IEnumerable becomes empty after adding elements to a collection? -