id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

tmhscs@gmail.com regex > regex_verifyLastFirst
prev  |  next  |  chance

Given a String, return true if it is a valid Lastname, Firstname. The first and last names should start with a capital letter and then have one or more lowercase letters. There should be no symbols or numbers or anything else other than the comma and space in the middle separating them.


regex_verifyLastFirst("Monroe, David") → true
regex_verifyLastFirst("monroe, david") → false
regex_verifyLastFirst("Guidry, Aaron") → true

...Save, Compile, Run (ctrl-enter)

public boolean regex_verifyLastFirst(String text) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Post-solution available

Copyright Nick Parlante 2017 - privacy