Regex and DOM extraction adapted.