Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
51
rated 0 times [  56] [ 5]  / answers: 1 / hits: 27569  / 12 Years ago, wed, january 23, 2013, 12:00:00

My regular expression which allows characters, numbers, dot and underscore is



var numericReg = /^[a-zA-Z0-9._]+$/;


How could i allow backspace in this reg ex.?


More From » jquery

 Answers
80

The optimal solution for this problem is to check the value of textbox >0 before validating. This will help to solve error showing while pressing backspace in an empty textbox..!!


[#80691] Tuesday, January 22, 2013, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
skyler

Total Points: 646
Total Questions: 119
Total Answers: 96

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
skyler questions
;