Peter Boughton wrote:
> Can you elaborate on the context of what you're trying to do here?
>
> Because stuff like this is generally much much simpler with either
> XPath or jQuery.
Yeah, XPath would be nice but the reason I'm looking for these <img...> 
tags, is because they are not XHTML compliant and I needed to fix that 
so that I could get this HTML fragment into an acceptable XML mode.

With a great deal of trial and error I finally came up with this.
<td align="center">.*?(?=<img).*?</td>

Luckily in this HTML string, the image <td..> blocks are the only ones 
with the align="center" property.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: http://www.houseoffusion.com/groups/RegEx/message.cfm/messageid:1171
Subscription: http://www.houseoffusion.com/groups/RegEx/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21

Reply via email to