On Sun, Jan 17, 2010 at 12:10:57PM -0800, Kendall Conrad wrote:
> This seems to work:
> 
> <td>([\s\S]*?<a\s[\s\S]*?)</td>

Unfortunately, that won't work.  It will match across td tags to find an
anchor tag.  For example, it will match:

<td></td><a href="url">text</a><td></td>

You need to prevent the first [\s\S]*? from matching </td>.

Try this instead:
(?s)<td>((?:(?!</td>).)*?<a\s.*?)</td>


Note that . in the presence of (?s) is equivalent to [\s\S].  They both
work, I just happen to prefer the former.

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.

Reply via email to