I need to write regex in this code to detect id on url like this: http://example.com/#1
var url = "http://example.com/#1";
var id = ; // id naumber (any date after hash 0, 00, 0000...)
if (window.location.hash == "#" + id + "") {
alert("your id is : " + id + "");
}
how about:
the id is captured in group 1