my coding to ignorecase isn't working but the else statement does. I have system.using regular expressions allready. it runs without errors but it dosn't ignore capitals.
private void checkBox1_CheckedChanged(object sender, EventArgs e)
{
if (checkBox1.Checked == true)
{
Regex word = new Regex
(wordtextBox.Text, RegexOptions.IgnoreCase);// dosn't work
}
else
{
Regex word = new Regex(wordtextBox.Text); // this here works
}
thanx for reading anyway.