Draft

Email Validation

218 of 831yaphi1

Description:

Write a function to test whether a given input is a valid email address.

For the purposes of this kata, here is what makes a valid email:

  • At least one letter character at the beginning
  • All characters between the first character and the @ (if any) must be letters, numbers, or underscores
  • There must be an @ character (after the points listed just now)
  • After the @ character, there must be at least one word character (letter, number, or underscore) or hyphen
  • The email must end with at least one set of a dot followed by one or more word characters.
  • The input must NOT be case-sensitive

The function should return true or false.

Regular Expressions
Strings
Fundamentals

Stats:

CreatedMay 28, 2014
Warriors Trained3181
Total Skips763
Total Code Submissions11490
Total Times Completed831
JavaScript Completions448
Java Completions92
Python Completions218
Ruby Completions88
Total Stars61
% of votes with a positive feedback rating91% of 294
Total "Very Satisfied" Votes254
Total "Somewhat Satisfied" Votes27
Total "Not Satisfied" Votes13
Total Rank Assessments296
Average Assessed Rank
6 kyu
Highest Assessed Rank
3 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • yaphi1 Avatar
  • jhoffner Avatar
  • GiacomoSorbi Avatar
  • hexafraction Avatar
  • kazk Avatar
Ad