10 Days of JavaScript (Day 7) HackerRank Solutions #10daysofjavascript

 DAY 7: Regular Expressions I

Solution >>>

function regexVar() {

  let re = /^([aeiou]).+\1$/;

  return re;

}




DAY 7: Regular Expressions II

Solution >>>

function regexVar() {

  let re = /^(Mr|Mrs|Ms|Dr|Er)(\.)([a-zA-Z])+$/;

  return re;

}




DAY 7: Regular Expressions III

Solution >>>

function regexVar() {

  let re = /\d+/g;

  return re;

}

Comments

Popular posts from this blog

Introduction to the Internet of Things and Embedded Systems (Week 2)

The Arduino Platform and C Programming (Week 1)