![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
正则表达式
zyong0271
这个作者很懒,什么都没留下…
展开
-
正确匹配URL的正则表达式
转:https://www.cnblogs.com/speeding/p/5097790.html正确匹配URL的正则表达式网上流传着多种匹配URL的正则表达式版本,但我经过试验,最好用的还是从stackoverflow上查到的:(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]...转载 2018-08-28 16:41:42 · 1167 阅读 · 0 评论 -
精通正则表达式的 12 个有用资源
https://www.oschina.net/news/42768/12-resources-for-mastering-regular-expressions?p=2一个用来测试正则表达式的 web app,支持 JavaScript、Python 和 PCRERubularhttp://rubular.com/r/LvXSMnTUuW...转载 2018-08-28 16:46:39 · 286 阅读 · 0 评论 -
Python核心编程 (第三版) 练习
1.6 练习1-16目录1.6 练习1-161-171-16 为gendata.py更新代码,使数据直接输出一redata.txtm而不是屏幕。#!/user/bin/env pythonfrom random import randrange, choicefrom string import ascii_lowercase as lcfrom time i...原创 2018-08-29 16:39:04 · 545 阅读 · 0 评论