📌  相关文章
📜  Day 7:正则表达式我hackerrank 10天的javascript解决方案——Javascript代码示例

📅  最后修改于: 2022-03-11 15:03:18.637000             🧑  作者: Mango

代码示例1
// 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;
}