<p dir="ltr">On 29 Aug 2013 10:01, "christospap" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br>
><br>
> I would like to syntax a regular expression which will match two server<br>
> names. The server names are <a href="http://example.com">example.com</a> and <a href="http://www.example.com">www.example.com</a>. In particular,<br>
> a regular expression for www or nothing<br>
><br>
> I wrote the following regular expression (www\.|)<a href="http://example.com">example.com</a></p>
<p dir="ltr">Irrespective of your use of this in an nginx config, you have made a mistake constructing the regex. It's such a simple one that I feel relatively sure that you're a newcomer to such things, hence I would suggest you find a regex primer (book|website) and study it carefully.</p>
<p dir="ltr">J</p>