<div dir="ltr">


        
        
        
        <style type="text/css">P { margin-bottom: 0.08in; }</style>


<p style="margin-bottom:0in">Regexp
question: Is there a pattern that can match everything to left of first pattern?<br></p>
<p style="margin-bottom:0in">
</p>
<p style="margin-bottom:0in">(regexp-match #rx&quot;x.*&quot;
&quot;12x4x6&quot;) ; =&gt;  &#39;(&quot;x4x6&quot;) ;returns everything
to right of first pattern x</p>
<p style="margin-bottom:0in"><br>
</p>
<p style="margin-bottom:0in">(regexp-match #rx&quot;___&quot;
&quot;12x4x6&quot;) ; =&gt;  &#39;(&quot;12x&quot;) ;returns everything
to left of first pattern x</p>
<p style="margin-bottom:0in">Thanks.</p><p style="margin-bottom:0in">Don Green<br>
</p>

<br></div>