I'm trying to replicate a Reg Ex.. But my code is giving always true irrespective of the value i pass..
It would be much helpful.. if u can explain what exactly this reg Ex is doing...
var re = new RegExp("([a-zA-Z0-9-`.'_]?)+");
if(re.test('valueFromHtml'){
console.log("valid");
}else{
console.log("invalid");
}