Sure Jay, I&#39;m no guru but I use regex whenever I can.<br><br>What do you mean when you say &quot;based on what is between &#39;( )&#39;&quot;?  <br><br>- Dave<br><br><div class="gmail_quote">On Fri, Feb 19, 2010 at 10:17 AM, Jay Swackhamer <span dir="ltr">&lt;<a href="mailto:Jay@reboottheuser.com">Jay@reboottheuser.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Looking at examples, not getting it done.<br>
<br>
Any regex gurus out there that can give me a tip on taking a string and splitting into groups based on what is between &#39;( )&#39;<br>
<br>
So I can take condstring, split it into an array by whats grouped in (), then take each element and split out the rest of the () groups.<br>
i.e.<br>
<br>
  my $condstring=&quot;include_1 (f7 ne \&#39;ce\&#39; and f10 ne \&#39;r\&#39; and f1 ne \&#39;ce\&#39; and f8 ne \&#39;lg\&#39; and f8 ne \&#39;li\&#39; and f8 ne \&#39;lj\&#39; and f8 ne \&#39;lr\&#39; and f8 ne \&#39;lu\&#39; and f8 ne \&#39;lv\&#39; and f8 ne \&#39;tl\&#39; and f8 ne \&#39;ta\&#39; and(f4 eq \&#39;e\&#39; or f4 eq \&#39;g\&#39; or f4 eq \&#39;w\&#39;)) &quot;;<br>


<br>
  @condarr = split /(\).*\))/, $condstring;<br>
<br>
<br>
-- <br>
Jay Swackhamer<br>
Reboot The User<br>
402-933-6449<br>
<a href="http://www.reboottheuser.com" target="_blank">http://www.reboottheuser.com</a><br>
<a href="http://www.cafepress.com/rtu" target="_blank">http://www.cafepress.com/rtu</a><br>
<a href="http://stores.ebay.com/RebootTheUser" target="_blank">http://stores.ebay.com/RebootTheUser</a><br>
<a href="http://www.hotr.com" target="_blank">http://www.hotr.com</a><br>
<br>
<br>
<br>
_______________________________________________<br>
Omaha-pm mailing list<br>
<a href="mailto:Omaha-pm@pm.org" target="_blank">Omaha-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/omaha-pm" target="_blank">http://mail.pm.org/mailman/listinfo/omaha-pm</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Dave Burchell<br>