I need to find Characters contained in a string.
anything other than A-Z(lower and upper) or numbers or () or /
,
those are the only characters allowed.
anything else (especially à,è,ë,Ç,ç,ï and so forth
)are crucial to find and display in a label.
Basically I Stored everything from a text file to a string,using streamreader. now every character other than [a-zA-z0-9]()/,need to be displayed in a label.
the text file will look something like this:
0145 Joane 5521 Maxin
0211 ChanÉ 2145 Spur
0124 Martôn 4512 btgames,
private void button1_Click(object sender, EventArgs e)
{
string BodyToCheck = richTextBox1.Text;
//This is where I need coding....
}
private void Form1_Load(object sender, EventArgs e)
{
StreamReader reader = new StreamReader("C:/Users/Quinell.Struthers/Test.txt");
string body = reader.ReadToEnd();
reader.Close();
reader.Dispose();
richTextBox1.Text = body;
}