in reply to Regular expression help: Taking HTML-like attributes with optional quotes
Take a look at Text::Balanced.
the lowliest monk