Challenge: Input Validation for Registration
Taak
Swipe to start coding
Implement a method that validates user registration information by checking both email and password requirements.
- The method must return
trueif the email is in a valid format and the password meets length requirements. Otherwise, it must returnfalse. - 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 2
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.17
Challenge: Input Validation for Registration
Veeg om het menu te tonen
Taak
Swipe to start coding
Implement a method that validates user registration information by checking both email and password requirements.
- The method must return
trueif the email is in a valid format and the password meets length requirements. Otherwise, it must returnfalse. - 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 2
single