
November 20th, 2012, 11:19 AM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 23
Time spent in forums: 2 h 20 m 59 sec
Reputation Power: 0
|
|
|
RegEx for Empty textbox but also check for spaces and tabs
Hello,
I need the help of the experts on this forum.
I would like to come up with a RegEx (javascript) to validate a textbox which has any blank spaces in it, any blank tabs in it, and also check for an empty textbox?
ie.
alert("Accepted")
------------------------------
Jameswithsometext
Billy Jean
alert("Not accepted")
------------------------------
- inadvertenly typed blank spaces
- inadvertenly typed tabs
- blank textbox
|