Hi All,
Not familiar with python at all I need to write regexp or some other way to replace : within the url.
What I have are links like this /story/55571:83405 problem is that parser is taking last five digits as port number while it's actually query string parameter that site is using.
I can not use just use straight replace as that would foul up the http:// bit.
Trying to use this
Code:
def print_version(self, url):
return re.sub(r'(\d):(\d)','\1/\2',url)
But not luck yet...
Any ideas...
Thanks