...

View Full Version : Test for Alpha Character



peterinwa
07-04-2005, 01:01 AM
Is there a simple way to test a string to see if the first character is alpha? The simplist I can think to do is to check to be sure it's not 0-9.

Thanks, Peter

Willy Duitt
07-04-2005, 02:38 AM
(/^[a-z]/i).test(string)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum