Re: regular expression question

From: Date: Sat, 01 Sep 2007 08:47:25 +0000
Subject: Re: regular expression question
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-261584@lists.php.net to get a copy of this message
But how? The +[a-z]{2,} seems to allow at least two a-z clusters, but it doesn't include a period. /ml
Almost correct. The plus belongs to whatever comes before it, not after. So what you're referring to as matching two or more characters but not the period, is this: [a-z]{2,} And this will match one or more "subdomains": ([-a-z0-9]+\.)+ -- Richard Heyes +44 (0)800 0213 172 http://www.websupportsolutions.co.uk Knowledge Base and HelpDesk software that can cut the cost of online support

« previous php.general (#261584) next »