use regular expression to delete the lines which we don't need
2008-09-01 09:48
639 查看
1.目的:用正则表达式删除不需要的行
2.原始数据:略
3.选用工具:EditPlus
4.规则:
将^.*~$ 替换为空 ,将尾号为~的行替换为空
将^.*bak.*$ 替换为空,将中间含有bak的行替换为空
将^.*test.*$ 替换为空,将中间含有test的行替换为空
将^.*_[0,9].*$ 替换为空,将中间含有_0到_9的行替换为空
将^.*php~.*$ 替换为空,将php~的行替换为空
将^.*temp.*$ 替换为空,将中间含有temp的行替换为空
将^.*Thumbs.*$ 替换为空,将中间含有 Thumbs 的行替换为空
将^.*192.*$ 替换为空,将中间含有 192 的行替换为空
将^.*mrtg.*$ 替换为空,将中间含有 mrtg 的行替换为空
将^.*xls$ 替换为空,将中间含有 .xls 的行替换为空
将^.*cvs$ 替换为空,将.cvs 的行替换为空
5.结果:略
2.原始数据:略
3.选用工具:EditPlus
4.规则:
将^.*~$ 替换为空 ,将尾号为~的行替换为空
将^.*bak.*$ 替换为空,将中间含有bak的行替换为空
将^.*test.*$ 替换为空,将中间含有test的行替换为空
将^.*_[0,9].*$ 替换为空,将中间含有_0到_9的行替换为空
将^.*php~.*$ 替换为空,将php~的行替换为空
将^.*temp.*$ 替换为空,将中间含有temp的行替换为空
将^.*Thumbs.*$ 替换为空,将中间含有 Thumbs 的行替换为空
将^.*192.*$ 替换为空,将中间含有 192 的行替换为空
将^.*mrtg.*$ 替换为空,将中间含有 mrtg 的行替换为空
将^.*xls$ 替换为空,将中间含有 .xls 的行替换为空
将^.*cvs$ 替换为空,将.cvs 的行替换为空
5.结果:略
相关文章推荐
- HV000183: Unable to load 'javax.el.ExpressionFactory'. Check that you have the EL dependencies on th
- Don't use old DTDs, read the Hibernate 3.x Migration Guide
- 解决The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it (http://ruijunsu)
- Warning: The name 'layoutWidget' (QWidget) is already in use, defaulting to 'layoutWidget1'.
- We don't need no bounding-boxes: Training object class detectors using only human verificatio
- corresponds to your MySQL server version for the right syntax to use near 'describe)values(225,0,'aa
- mybatis 使用foreach时出现"The expression 'list' evaluated to a null value"问题
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uni
- How to properly use 'dd' to benchmark the write speed of your disk?
- ng-repeat出现环路输出Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique
- 解决The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
- mysql报错:MySQL server version for the right syntax to use near 'type=InnoDB'
- 解决 The 'InnoDB' feature is disabled; you need MySQL built with 'InnoDB' to have it working
- Ubutun 编译完sdk 出现Target id is not valid. Use 'android list targets' to get the target ids.
- How to clear the views which are held in the ListView's RecycleBin?
- The project was not built due to "Could not delete ''.". Fix the problem, then try refreshing this p
- MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT’
- [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify uniq
- How to enable the use of 'Ad Hoc Distributed Queries' by using sp_configure
- 访问嵌入式网页出错:The requested URL '/' resolves to a file which is marked executable but is not a CGI file