Page is a not externally linkable
- Code, Content, and Presentation
-- PHP Server Side Scripting
---- check if a string contains a letter followed by a number


ahmed24 - 10:47 am on Sep 8, 2009 (gmt 0)


i've managed to do this:

if (!preg_match('/[[:^digit:]]/', $username)) { }

but this only detects if it is a number, how can i determine if it also begins with a letter p ?


Thread source:: http://www.webmasterworld.com/php/3985910.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com