in reply to one line regexp problem
Is it just me, or is that XML? (or at least, a portion of an xml document?). If it is xml, why don't you use an XML parser? Prewritten, very fast, easy to use, flexible, etc. Then you don't have to rely on clunky fragile regexen.