def find_urls(string, unique=True):
 string = u(string)
 string = string.replace(u'\u2024', '.')
 string = string.replace(' ', '  ')
 matches = []
 for p in (RE_URL1, RE_URL2, RE_URL3):
  for m in p.finditer((' %s ' % string)):
   s = m.group(1)
   s = s.split('">')[0].split("'>")[0]
   if ((not unique) or (s not in matches)):
    matches.append(s)
 return matches

def find_urls ( string , unique = True ) : string = u ( string ) string = string . replace ( u'\u2024' , '.' ) string = string . replace ( ' ' , '  ' ) matches = [ ] for p in ( RE_URL1 , RE_URL2 , RE_URL3 ) : for m in p . finditer ( ( ' %s ' % string ) ) : s = m . group ( 1 ) s = s . split ( '">' ) [ 0 ] . split ( "'>" ) [ 0 ] if ( ( not unique ) or ( s not in matches ) ) : matches . append ( s ) return matches
returns a list of urls parsed from the string .