Tag Archives: regexp

Javascript – Match with Regular Expression

var reg_exp = /^([0-9]+)\/([0-9]+)$/; var matches = month_value.match(reg_exp); The variable matches is an array. Note the escaping for the character /.

Posted in Javascript | Tagged | Leave a comment