正则表达式
sjtu_chenchen
硕士毕业于上海交通大学,先后就职于各类大厂,在java、devops、大数据实时计算方向有深入的研究
展开
-
python正则表达式入门笔记
coding=utf-8import re #导入re模块,用于正则表达式st=’dabbBbcga dcgagc12g%abc010-11138495’res=’abc’ #包含abc res=’a[bd]c’ #包含abc或adc res=”a[^bd]c” #除了abc和adc之外 res=’^a’ #开头是否有a res=’bc$’ #结尾是否有bc res=’c[0-3][原创 2015-04-11 23:04:22 · 1024 阅读 · 0 评论 -
java正则表达式总结
package pack;import java.util.regex.Matcher; import java.util.regex.Pattern;public class Demo { public static void main(String[] args) { //method1();//匹配 //method2();//切割 //m原创 2015-04-29 22:27:10 · 950 阅读 · 0 评论 -
网络爬虫
/*网络爬虫--爬邮件*/ import java.io.*; import java.util.regex.*;class Main { public static void main(String[] args) throws Exception { getMails(); } public static void getMails() throws Exce原创 2015-04-29 22:55:58 · 1001 阅读 · 0 评论 -
python处理blog文件数据
下面是Python数据处理的题目说明与要求: The attachment is a log file used to show running status of set-top-box, and each line in the file follows the format of “LineNumber + Time + ProcessName + (ProcessID) + Logs”,原创 2015-06-06 11:48:16 · 1268 阅读 · 0 评论