On 2010-11-04 17:18:17 +0100, mouss wrote: > otherwise, you can do whatever you want with pcre: > /\.example\.com$/ OK > or with sql or ldap.
For pcre, the man page is not clear. It says: Each pattern is a regular expression that is applied to the entire string being looked up. Depending on the application, that string is an entire client hostname, an entire client IP address, or an entire mail address. But where is it described whether the string is an entire client hostname, an entire client IP address, or an entire mail address? According to your example, the string is an entire client hostname. But then, this means that one cannot match IP addresses. -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)