Param name must star with a letter or the _ symbole then can be followed by any letters, numbers or _ symbole - Node.js Regular expression

Node.js examples for Regular expression:Match

Description

Param name must star with a letter or the _ symbole then can be followed by any letters, numbers or _ symbole

Demo Code

function isValidParamName(name) {
    return name.search(/^[a-z_]+[0-9a-z_]*$/i) > -1;
}

Related Tutorials