f-angi
4/18/2016 - 12:44 PM

javascript regular expressions

javascript regular expressions

// x == y
var x = stringVar.match(new RegExp('^a(\\w+)b$'));
var y = stringVar.match(/^a(\w+)b$/);