📅  最后修改于: 2022-03-11 15:03:18.637000             🧑  作者: Mango
// Day 7: Regular Expressions I hackerrank 10 days of javascript solution
function regexVar() {
/*
* Declare a RegExp object variable named 're'
* It must match a string that starts and ends with the same vowel (i.e., {a, e, i, o, u})
*/
let re = /^([aeiou]).*\1$/;
/*
* Do not remove the return statement
*/
return re;
}