http://qs321.pair.com?node_id=1023535


in reply to How to grab a portion of file with regex

Parsing HTML with regexes is really hard. You are better off using an HTML Parser and coding from there.