Robert Spier wrote:

I think what we want is this:

my $subdomain = '(?:[a-zA-Z0-9](?:[-a-zA-Z0-9]*[a-zA-Z0-9])?)';

I tested this with

        use re 'debug';

and it did seem to correctly match the pattern we are looking for. I've put it into production here (after testing it); shall I commit the change?

John

Reply via email to