Why not just exclude self closing matches in this regex?