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
janharders - 12:00 pm on Sep 8, 2009 (gmt 0)Thread source:: http://www.webmasterworld.com/php/3985910.htm
As I said, use ^p\d+$ as the regexp (that's [[:^digit:]] in your example) to check for that. the ^ matches at the beginning of the string, and $ at the end, so that'll let p123 through, but not p123a or ap123.
Brought to you by WebmasterWorld: http://www.webmasterworld.com