Been struggling with this one for a while now - I simply can't wrap my brain around it.
Given the following string variations:
some text
some text http://a.link.to/something
some text - http://a.link.to/something
some text: http://a.link.to/something
http://a.link.to/something
I am looking for a RegEx that would produce the following:
{'text': 'some text',
'link': ''}
{'text': 'some text',
'link': 'http://a.link.to/something'}
{'text': '',
'link': 'http://a.link.to/something'}
Cheers!
