title: Regular Expressions - combine greedy and lazy mode
body: <p>For example, for a string:</p>
  
  <pre><code>http://www/host/a/b/c/topic/d/e/f/topic/last.html
  </code></pre>
  
  <p>I want to get value of "b" and "c", which are value of string before FIRST "topic".</p>
  
  <p>If I use: <code>.+/(.+)/(.+)/topic/(.+)</code>, I will get "e" and "f". I know it is greedy mode, so it matched second "topic". But if I changed to lazy mode, like <code>.+?/(.+?)/(.+?)/topic/(.+)</code>, it was still not working.</p>