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