I have a regular expression to check phone number.It returns 'true' for 10 zeroes. How to change regular expression to return 'false' for 10 zeroes. Following is my code
var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;
phoneno.test('8129587912');// returns true .Works good
phoneno.test('asdff');// returns false .Works good
phoneno.test('0000000000');//returns true. Not Working As Expected
Please help to solve this issue.