zoukankan      html  css  js  c++  java
  • 去掉tppabs冗余代码,怎样批量去掉tppabs代码

    去掉tppabs冗余代码,怎样批量去掉tppabs代码

    刚用teleport pro拉了一个整站到本地
    所有的超链都被强行加了一句tppabs="
     
    就玩了一把dw的替换功能
    查找范围:整个当前本地站点
    搜索:源代码
    查找:tppabs="h[^"]*"
    替换:(为空)
    勾选:使用正则表达式
    点替换全部按钮
    OK~~搞定~~
     
     
    另:附dw正则表达式表

    字符

    匹配

    示例

    ^

    输入或行的起始部分。

    ^T 匹配“This good earth”中的“T”,但不匹配“Uncle Tom's Cabin”中的“T”

    $

    输入或行的结尾部分。

    h$ 匹配“teach”中的“h”,但是不匹配“teacher”中的“h”

    *

    个或多个前置字符。

    um* 匹配“rum”中的“um”“yummy”中的“umm”以及“huge”中的“u”

    +

    个或多个前置字符。

    um+ 匹配“rum”中的“um”“yummy”中的“umm”,但在“huge”中没有任何匹配项

    ?

    前置字符最多出现一次(即,指示前置字符是可选的)。

    st?on 匹配“Johnson”中的“son”“Johnston”中的“ston”,但在“Appleton”“tension”中没有任何匹配项

    .

    除换行符外的任何单字符。

    .an 匹配短语“bran muffins can be tasty”中的“ran”“can”

    x|y

     y

    FF0000|0000FF 匹配 bgcolor=”#FF0000” 中的“FF0000” font color=”#0000FF” 中的“0000FF”

    {n}

    恰好 n 个前置字符。

    o{2} 匹配“loom”中的“oo”“mooooo”中的前两个“o”,但在“money”中没有任何匹配项

    {n,m}

    至少 n 个、至多 m 个前置字符。

    F{2,4} 匹配“#FF0000”中的“FF”“#FFFFFF”中的前四个“F”

    [abc]

    用括号括起来的字符中的任何一个字符。用连字符指定某一范围的字符(例如, [a-f] 等效于 [abcdef])。

    [e-g] 匹配“bed”中的“e”“folly”中的“f”“guard”中的“g”

    [^abc]

    未在括号中括起来的任何字符。用连字符指定某一范围的字符(例如,[^a-f] 等效于[^abcdef])。

    [^aeiou] 最初匹配“orange”“r”“book”中的“b”“eek中的“k”

    

    词边界(例如空格或回车符)。

    b 匹配“book”中的“b”,但在“goober”“snob”中没有任何匹配项

    B

    词边界之外的任何内容。

    Bb 匹配“goober”中的“b”,但在“book”中没有任何匹配项

    d

    任何数字字符。等效于 [0-9]

    匹配“C3PO”中的“3”“apartment 2G”中的“2”

    D

    任何非数字字符。等效于 [^0-9]

    匹配“900S”中的“S”“Q45”中的“Q”

    f

    换页符。

     

    换行符。

     

    回车符。

     

    s

    任何单个空白字符,包括空格、制表符、换页符或换行符。

    sbook 匹配“blue book”中的“book”,但在“notebook”中没有任何匹配项

    S

    任何单个非空白字符。

    Sbook 匹配“notebook”中的“book”,但在“blue book”中没有任何匹配项

    制表符。

     

    w

    任何字母数字字符,包括下划线。等效于 [A-Za-z0-9_]

    bw* 匹配“the barking dog”中的“barking”以及“the big black dog”中的“big”“black”

    W

    任何非字母数字字符。等效于 [^A-Za-z0-9_]

    匹配“Jake&Mattie”中的

  • 相关阅读:
    How to convert VirtualBox vdi to KVM qcow2
    (OK)(OK) adb -s emulator-5554 shell
    (OK)(OK) using adb with a NAT'ed VM
    (OK) How to access a NAT guest from host with VirtualBox
    (OK) Creating manually one VMs from an existing VDI file in CLI (VBoxManage) in Fedora 23
    (OK)(OK) Creating VMs from an existing VDI file in CLI (VBoxManage) in Fedora 23
    (OK) Creating_VMs_from_an_existing_VDI_file.txt
    (OK) Creating VMs from an existing VDI file —— in OS X
    (OK) install_IBM_SERVER.txt
    (OK) install chrome & busybox in android-x86_64 —— uninstall chrome
  • 原文地址:https://www.cnblogs.com/web-d/p/4173609.html
Copyright © 2011-2022 走看看