Commit a6ff081f authored by Min Gao's avatar Min Gao
Browse files

del URL in text

parent 656e0120
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import re
def delURL(text):
text = re.sub(r"http\S+", "", text)
return text
if __name__ == '__main__':
print(delURL(input("enter a string:")))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment