Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 12:00 PM, Martin Clifford wrote: Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number, but it has to follow a letter? Or would you just do [a-zA-Z][0-9] to do that? That bracketed construction is called a character class.

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Analysis Solutions
On Wed, Jul 03, 2002 at 12:00:50PM -0400, Martin Clifford wrote: Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number, but it has to follow a letter? Or would you just do [a-zA-Z][0-9] to do that? Your second question/statement is correct. --Dan --