Answers for "use regular expression in python to remove URL's"

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 "use regular expression in python to remove URL's"

Python Answers by Framework

Browse Popular Code Answers by Language