Editplus 正则替换实例 By Stabx

abandon[2’b9nd2n]v.抛弃,放弃
abandonment[2’b9nd2nm2nt]n.放弃
abbreviation[2bri:vi’ei62n]n.缩写
abeyance[2’bei2ns]n.缓办,中止
abide[2’baid]v.遵守
ability[2’biliti]n.能力
able[’eibl]adj.有能力的,能干的
abnormal[9b’n0:m2l]adj.反常的,变态的
aboard[2’b0:d]adv.船(车)上

  1. 查找: (^[a-zA-Z0-0\-]+)(\[*.*\]+)(.*)
    替换: @@@@@"\1″,"\2″,"\3″,
    效果:

    @@@@@”abandon”,”[2’’b9nd2n]”,”v.抛弃,放弃”,
    @@@@@”abandonment”,”[2’’b9nd2nm2nt]”,”n.放弃”,
    @@@@@”abbreviation”,”[2bri:vi’’ei62n]”,”n.缩写”,
    @@@@@”abeyance”,”[2’’bei2ns]”,”n.缓办,中止”,
    @@@@@”abide”,”[2’’baid]”,”v.遵守”,
    @@@@@”ability”,”[2’’biliti]”,”n.能力”,
    @@@@@”able”,”[‘’eibl]”,”adj.有能力的,能干的”,
    @@@@@”abnormal”,”[9b’’n0:m2l]”,”adj.反常的,变态的”,
    @@@@@”aboard”,”[2’’b0:d]”,”adv.船(车)上”,

  2. 查找: \n
    替换:
    注: 要次替换内容为空
    效果:

    @@@@@”abandon”,”[2’’b9nd2n]”,”v.抛弃,放弃 “,@@@@@”abandonment”,”[2’’b9nd2nm2nt]”,”n.放弃 “,@@@@@”abbreviation”,”[2bri:vi’’ei62n]”,”n.缩写 “,@@@@@”abeyance”,”[2’’bei2ns]”,”n.缓办,中止”,@@@@@”abide”,”[2’’baid]”,”v.遵守 “,@@@@@”ability”,”[2’’biliti]”,”n.能力”,@@@@@”able”,”[‘’eibl]”,”adj.有能力的,能 干的 “,@@@@@”abnormal”,”[9b’’n0:m2l]”,”adj.反常的,变态的 “,@@@@@”aboard”,”[2’’b0:d]”,”adv.船(车)上”,@@@@@”abolish”,”[2’’b0li6]”,”v.废 除,取消”,@@@@@”abolition”,”[9b2’’li62n]”,”n.废除,取消”

  3. 查找: @@@@@
    替换: \n
    效果:

    “abandon”,”[2’’b9nd2n]”,”v.抛弃,放弃”,
    “abandonment”,”[2’’b9nd2nm2nt]”,”n.放弃”,
    “abbreviation”,”[2bri:vi’’ei62n]”,”n.缩写”,
    “abeyance”,”[2’’bei2ns]”,”n.缓办,中止”,
    “abide”,”[2’’baid]”,”v.遵守”,
    “ability”,”[2’’biliti]”,”n.能力”,
    “able”,”[‘’eibl]”,”adj.有能力的,能干的”,
    “abnormal”,”[9b’’n0:m2l]”,”adj.反常的,变态的”,
    “aboard”,”[2’’b0:d]”,”adv.船(车)上”,
    “abolish”,”[2’’b0li6]”,”v.废除,取消”,

  4. 任务完成

  5. 作用说明
    本次操作主要是为了将数据导入 MS Access

注: 本次操作导入数据 7988 行

shawl.qiu
15:39 2006-5-16