I am trying to capture part of matched string. Here's what I've done:
var myRegex = /(^[0-9]{2}\.[0-9]{2}\.|$)/;
vary myString = "33.11.999";
var match = myRegex.exec(myString);
console.log(match[1]);
console will output 33.11. but i want to exclude the last dot. Is it possible to do that using regex?