Sorry for another off topic post on regex but I need some help.

 

I have this regex:

<td[^>]*><h[^>]*>([^<]*)</h[^>]*></td[^>]*><td[^>]*>&nbsp;</td[^>]*>

That gets the content of a cell with a blank cell following.

 

This works fine except that occasionally the content of the cells has a <font tag around it which the above regex doesn’t find. I did solve this by having two regex expressions, one with the font and one without. Each time I went to the next cell I matched both regex’s and found out which was the next one along. This really slowed the whole thing down.

 

How can I tell regex that there might be a font tag?

 

Thanks

 

Giles Roadnight

http://giles.roadnight.name

Reply via email to