2
I wonder if anyone knows any expression to remove links that are present in a file . CSV in Python language.
Text ex:
Joao was in the market http://scikit-learn.org/stable/modules/genera I want that text to appear
With that I want the way out:
Joao was in the market I want that text to appear
I have this code. It removes the link but also the text that comes after
URLless_string = re.sub(r'\w+:\/{2}[\d\w-]+(\.[\d\w-]+)*(?:(?:\/[^\s/]*))*', '', str(linha))
print(str(URLless_string))
Why the code was removed from the question? It apparently worked.
– Woss