“Remova os linnks da web do string python” Respostas de código

Remova os linnks da web do string python

re.sub(r'http\S+', '', stringliteral)
Exuberant Eel

Substitua o URL pelo texto 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)
Troubled Tern

Respostas semelhantes a “Remova os linnks da web do string python”

Perguntas semelhantes a “Remova os linnks da web do string python”

Mais respostas relacionadas para “Remova os linnks da web do string python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código