title: regex: match character in middle of url
body: <p>I have a URLs like these:</p>
  
  <pre><code> http://dve.abc-de.com/some/fol/try/AB+C/folder/folder
  
   http://dve.abc-de.com/some/fol/try/try2/AB+C/bla/blu/
  </code></pre>
  
  <p>I need to match anything between <a href="http://vcs.abc-de.com/some/fol/" rel="nofollow">http://vcs.abc-de.com/some/fol/</a> and /AB+C/. So my regex should return this:</p>
  
  <pre><code>try
  try/try2
  </code></pre>
  
  <p>The first part <code>http://dve.abc-de.com/some/fol/</code> is always the same and the last part always begins with /AB+C and then something.</p>
  
  <p>I've only managed to match <a href="http://vcs.abc-de.com/some/fol/" rel="nofollow">http://vcs.abc-de.com/some/fol/</a> or /AB+C with lookbehinds and lookaheads, but never managed to match the string between those two.</p>
  
  <p>I tried something like (I know this is wrong, but I can't reconstruct it anymore)</p>
  
  <pre><code>(?&lt;=(http://vcs\.abc-de\.com/some/fol/)(.*?)(?=/AB+C*\))
  </code></pre>
  
  <p>How do I need to construct this?</p>