I would like to know if anyone knows any expressions to remove links that are present in a .CSV file in the Python language.
Text Ex:
joao was on the market link I want this text to appear
With this I want the output to be:
John was in the market I want this text to appear
I have this code. It removes the link but also the text that comes later
URLless_string = re.sub(r'\w+:\/{2}[\d\w-]+(\.[\d\w-]+)*(?:(?:\/[^\s/]*))*', '', str(linha))
print(str(URLless_string))