I am trying to use re to parse email and web string I am currrently able to get any link either email or http on aweb page . But when I try to filter out garbage such as "?subject" or "/ddfas/asdsé.htm" I can't I am currently using this : s = re.compile(r'mailto:([^/])"') have aany idea on how I can achieve this?