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 --

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.

[PHP] Another Regex Question (General)

2002-07-03 Thread Martin Clifford
This may sound like a stupid question, but... within a regular expression, are the values in brackets evaluated consecutively, or no? For example: 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]