正则表达式
淋巴不想动
logout
展开
-
python - 通配符
通配符: *: 所有 ?: 代表单个字符 .: 当前目录 …:当前目录的上一级目录 [0-9]: 单个字符为0~9 [a-z]:单个字符为a~z [A-Z]:单个字符为A~Z [A-Za-z]:A~Z a~z [0-9A-Za-Z]0~9 A~Z a~z [[:digit:]] [[:upper:]] [[:lower:]] [[:space:]] glob官方解读 >>&g...原创 2019-02-14 16:56:13 · 10323 阅读 · 0 评论 -
python-正则表达式的补充
正则表达式在线生成 1.匹配url地址 http://www.baidu.com ^((https|http|ftp|rtsp|mms)?:\/\/)[^\s] # ^: 以什么开头 # (https|http|ftp|rtsp|mms): 代表一个分组 # [https|http|ftp|rtsp|mms]: 代表一个字母 ^: 如果没有在[]里面的时候, 代表以什么开头; ...原创 2019-02-17 22:31:40 · 139 阅读 · 0 评论