登录 注册

从txt里解析url的正则(python版)

收藏
[Python] 标签:正则 2012-09-23 10:58
原始代码 全屏查看 0评 / 0藏 / 5067阅  跳至 / 3行
1
2
3
#from https://github.com/waylan/Python-Markdown/blob/master/markdown/inlinepatterns.py
AUTOLINK_RE = r'<((?:[Ff]|[Hh][Tt])[Tt][Pp][Ss]?://[^>]*)>' # <http://www.123.com>
AUTOMAIL_RE = r'<([^> \!]*@[^> ]*)>'               # <me@example.com>

最新评论

  · · · · · ·  (共0条)

目前还没有评论

登录后您才可以发表评论。 马上登录 立即注册
cottage
2012-02-29加入
一段精湛的代码,天涯何处寻知音!
Back to Top