If I have a piece of text, i.e.
title="gun control" href="/EBchecked/topic/683775/gun-control"
and want to create a regular expression that matches (see inside <> below)
title="<1 word or many words separated by a space>" href="/EBchecked/topic/\w*/\S*"
How do I solve that part in the <>?
BeautifulSoupmakes HTML handling a breeze:for link in soup.find_all('a', href=True): print link.attrs.get('title', 'No title set'), link['href'].content = soup.find('div', 'topic-content'), thenfor link in content.find_all('a', href=True): print link.attrs.get('title', 'No title set'), link['href'].