Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Challenge: Input Validation for Registration | Validating Input and Safe Parsing
C# Exceptions and Error Handling Practice

bookChallenge: Input Validation for Registration

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 2
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Input Validation for Registration

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 2
single

single

some-alt