Answers for "remove links which have a string"

1

replace url with text python

import re
text = re.sub('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))'+, '', text, flags=re.MULTILINE)
Posted by: Guest on April-16-2020

Code answers related to "remove links which have a string"

Python Answers by Framework

Browse Popular Code Answers by Language