SV: Server_Name regular expression

2013-08-30 Thread Jens Rantil
Hi, Maybe http://regex101.com/ could help? Cheers, Jens Från: nginx-boun...@nginx.org [mailto:nginx-boun...@nginx.org] För Jonathan Matthews Skickat: den 30 augusti 2013 10:54 Till: nginx@nginx.org Ämne: Re: Server_Name regular expression On 29 Aug 2013 10:01, "christospap" mailt

Re: Server_Name regular expression

2013-08-30 Thread Jonathan Matthews
On 29 Aug 2013 10:01, "christospap" wrote: > > I would like to syntax a regular expression which will match two server > names. The server names are example.com and www.example.com. In particular, > a regular expression for www or nothing > > I wrote the following regular expression (www\.|)exampl

Re: Server_Name regular expression

2013-08-29 Thread Maxim Dounin
Hello! On Thu, Aug 29, 2013 at 05:01:01AM -0400, christospap wrote: > I would like to syntax a regular expression which will match two server > names. The server names are example.com and www.example.com. In particular, > a regular expression for www or nothing > > I wrote the following regular

Server_Name regular expression

2013-08-29 Thread christospap
I would like to syntax a regular expression which will match two server names. The server names are example.com and www.example.com. In particular, a regular expression for www or nothing I wrote the following regular expression (www\.|)example.com Nginx configuration file is compatible with Perl