remove hyperlink from text python

101

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

Comments

Submit
0 Comments