http://stackoverflow.com/questions/3861970/regexpression-test
I have posted a problem in the above link
based on that i have done like bellow That too is error
var regExpression=new RegExp("^([a-zA-Z0-9_\-\.]+)$");
alert (regExpression.test("11aa"));