You are viewing a single comment's thread. Return to all comments →
const re = new RegExp('^(Mr.|Mrs.|Ms.|Dr.|Er.)[A-Za-z]+$');
Wrong Answer :( Input (stdin) Dr#Joseph Your Output (stdout) true Expected Output false
Seems like cookies are disabled on this browser, please enable them to open this website
I agree to HackerRank's Terms of Service and Privacy Policy.
Day 7: Regular Expressions II
You are viewing a single comment's thread. Return to all comments →
const re = new RegExp('^(Mr.|Mrs.|Ms.|Dr.|Er.)[A-Za-z]+$');
Wrong Answer :( Input (stdin) Dr#Joseph Your Output (stdout) true Expected Output false