<p dir="ltr">On 15 Mar 2014 17:30, "gokhanege" <<a href="mailto:nginx-forum@nginx.us">nginx-forum@nginx.us</a>> wrote:<br>
><br>
> Where is the problem? I cound not found it.</p>
<p dir="ltr">Your problem is that all of your .* matches are greedy, whereas you (probably) want only the last to be greedy. Have a Google for how to do that with regular expressions.</p>
<p dir="ltr">You also might want to replace /some/ of your "(.*)" with "([^-]*)" if they should /never/ contain hyphens. </p>
<p dir="ltr">HTH, <br>
J</p>