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
--
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.
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]
3 matches
Mail list logo