|
|
|
|
|
|
![]() |
#13 |
a.k.a. Sparky
Join Date: Sep 2004
Location: West Palm Beach, FL, USA
Posts: 2,396
|
for regexp, if you wanted the first character to be alphanumeric, non-space
^[a-zA-Z0-9][a-zA-Z0-9 ]+$ of course, that will allow an ending space character, which could eliminate with something like: ^[a-zA-Z0-9][a-zA-Z0-9 ]+[a-zA-Z0-9]$ however, that still allows multi-space runs in the middle. One thing I always tell my guys -- validate input, don't try and fix it. Running search and replace to destroy invalid string or url encoding, etc can be avoided with a decent regexp.
__________________
SnapReplay.com a different way to share photos - iPhone & Android |
![]() |
![]() |
|
|