supprimer les linnks web de String Python
re.sub(r'http\S+', '', stringliteral)
Exuberant Eel
re.sub(r'http\S+', '', stringliteral)
import re
text = re.sub('http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\(\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))'+, '', text, flags=re.MULTILINE)