php some regex without end
<p>I am trying to learn regex and have a string, I want the beginning to be (not including)</p>

<pre><code>.com/ 
</code></pre>

<p>and the end to be (not including)</p>

<pre><code>"&gt;[tomato
</code></pre>

<p>I can make the basic regex ok, but it keeps including the tomato part in it, instead of ending just before it.  So if I have </p>

<pre><code>'sdf98uj3.com/sdjkh.sdf./sdf.sdf"&gt;[tomatoiosdf8uj3'
</code></pre>

<p>, then I want to return:</p>

<pre><code>sdjkh.sdf./sdf.sdf
</code></pre>

<p>I am using preg_match in php.  Any ideas?</p>
