At 1:36 PM -0400 8/19/09, Ronald J Kimball sent email regarding Re: Multi-line, Non-Greedy GREP Find: >On Wed, Aug 19, 2009 at 10:24:29AM -0700, Warren Michelsen wrote: >> >> How do I get this pattern to stop after finding the first "</td>" tag? I >> want to replace <td> tags that span multiple lines. >> >> <td class="redline">([\s\S]*)</td> > >The simplest way is by using a non-greedy quantifier: > ><td class="redline">([\s\S]*?)</td>
I thought the non-greedy qualifier had to be associated with the close tag and therefore after the closing parentheses. I tried putting it all kinds of places, except inside the parentheses. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "supp...@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---