href=[\"\'] ([^\"\']+) [\"\']> #second href (not captured) \s*([^<>]+?)\s* #text inside second