Welcome! Log In Create A New Profile

Advanced

Server_Name regular expression

August 29, 2013 05:01AM
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 programming language. While it should work, it doesn't seem to work. I cannot find the proper regular expression. Does anyone have an idea how to synatx the regular expression?

Thanks
SubjectAuthorPosted

Server_Name regular expression

christospapAugust 29, 2013 05:01AM

Re: Server_Name regular expression

Maxim DouninAugust 29, 2013 05:38AM

Re: Server_Name regular expression

Jonathan MatthewsAugust 30, 2013 04:56AM

SV: Server_Name regular expression

Jens RantilAugust 30, 2013 06:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 126
Record Number of Users: 3 on November 26, 2014
Record Number of Guests: 131 on November 26, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready