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> Ronald --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
