Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Input Validation for Registration | Validating Input and Safe Parsing
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Exceptions and Error Handling Practice

bookChallenge: Input Validation for Registration

Task

Swipe to start coding

Implement a method that validates user registration information by checking both email and password requirements.

  • The method must return true if the email is in a valid format and the password meets length requirements. Otherwise, it must return false.
  • The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
  • The password is valid if it is at least 8 characters long.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 2
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in more detail?

What are the next steps I should take?

Can you give me an example?

close

bookChallenge: Input Validation for Registration

Swipe to show menu

Task

Swipe to start coding

Implement a method that validates user registration information by checking both email and password requirements.

  • The method must return true if the email is in a valid format and the password meets length requirements. Otherwise, it must return false.
  • The email is valid if it contains exactly one "@" symbol and at least one "." after the "@".
  • The password is valid if it is at least 8 characters long.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 2
single

single

some-alt