zoukankan      html  css  js  c++  java
  • 用正则表达式删除不需要的行

    在Editplus中使用正则表达式删除整行数据

     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 的行替换为空
     
    匹配空行:( )*或 [s| ]* 其换成
     
    5.结果:略
     
    转自:http://blog.sina.com.cn/s/blog_769aaa8a0100prac.html
  • 相关阅读:
    mybatis(十)缓存
    mybatis(八)复杂查询
    mybatis(六)分页
    mybatis(九)动态SQL
    mybatis(七)只用注解开发
    mybatis(五) 日志
    log4j.properties 相关配置
    mybatis(四)中可能出现的问题
    MyBatis(三) 配置解析
    IIS 发布 .net core 3.1
  • 原文地址:https://www.cnblogs.com/lvchenfeng/p/5257082.html
Copyright © 2011-2022 走看看