remove hyperlink from text python

88

import re
text = re.sub(r'^https?:\/\/.*[\r\n]*', '', text, flags=re.MULTILINE)

Comments

Submit
0 Comments