Answers for "remove link from text python"

1

remove web linnks from string python

re.sub(r'http\S+', '', stringliteral)
Posted by: Guest on June-28-2020
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 link from text python"

Python Answers by Framework

Browse Popular Code Answers by Language