title: Regex to exclude specific language suffix from url
body: <p>Aim of this question is understand how to exclude only specific language code from url. Lets say we have <code>example.com/en/test</code> - this should be a valid match. Other valid urls will be <code>example.com/ene/test</code>, <code>example.com/been/test</code> and etc. The only url which will be excluded from regex expression is <code>example.com/en</code>. I'm definitely not a regex master so all tips will be welcome. I want to modify following expression to exclude only above mentioned url.</p>
  
  <pre><code>^(([^/]+/)*[^./]+)$
  </code></pre>