On Thu, Jun 03, 2010 at 04:31:03AM -0700, Kendall Conrad wrote: > You'll want to make that less greedy (using *?) so it doesn't take out > too much. You can also simplify by moving the </? outside the > parentheses so it doesn't need to be repeated. > > </?(table|tr|td)[^>]*?>
There is no need to use a non-greedy quantifier in this particular pattern. [^>]*> and [^>]*?> are completely equivalent in what they will match. Either way, you're matching exactly as many non-">" characters as there are up to the first ">" character. Ronald -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. 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 feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group.