Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Following code has some syntax problems. Write this code by removing all problems of syntax. (Non-anonymous question om (4 Points) string email = ^([0-9a-ZA-Z] ([-1.w]*[0-9a-ZA-Z])*([0-9a-zA-Z][-w]*[0-9a-ZA-Z].)

image text in transcribed

Following code has some syntax problems. Write this code by removing all problems of syntax. (Non-anonymous question om (4 Points) string email = "^([0-9a-ZA-Z] ([-\1.\\w]*[0-9a-ZA-Z])*([0-9a-zA-Z][-\\w]*[0-9a-ZA-Z]\\.) +[a- ZA-Z]{2,9})$"; private void txt_Email_Leave(object sender, EventArgs e) { if(string.IsNullOrEmpty(txt_Email.Text). true) { txt_Email. Focus==True; errorProvider2.Error(this.txt_email, "Cannot be blanked"); } } private void button1_Click(object sender, EventArgs e) { Regex objEmail = new Regex(mail); bool result = objEmail. Ismatch(txt_Email); MessageBox.Show(result.ToString(); }

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual Basic.NET

Authors: Ying Bai

1st Edition

0521712351, 978-0521712354

More Books

Students also viewed these Databases questions

Question

Discuss the states of accounting

Answered: 1 week ago