掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 862|回复: 4

[求助] 求助!关于正则表达式

[复制链接]

该用户从未签到

发表于 2012-6-6 12:02:02 | 显示全部楼层 |阅读模式
[i=s] 本帖最后由 mitkyg 于 2012-6-6 12:16 编辑 [/i]7 H: G7 S0 d/ w8 v2 {

% I- v9 v' u: B$ Ygap, noun, verb, gapped, gapping.
" S: e/ D9 ^9 y- v2 I3 ^noun 1. a broken place; opening.& R: u8 d1 U( I
△Ex. The cows got out of the field through a gap in the fence.: P9 [5 o) h6 K# a) N
(SYN) break, breach.& F# C- `! O. X1 A# q4 J& Z
2. an empty part; unfilled space; blank.
" I7 q3 u1 `1 D△Ex. The record is not complete; there are several gaps in it. There still exists in general a wide gap between the empirical facts of chemistry on the one side, and the fundamental laws of physics on the other (Science News).% P+ s5 _- u( Y/ o( ?  `" Q) A
(SYN) lacuna.' S: X# C) j4 g9 C
3. a wide difference of opinion, character, or the like.
; ]4 M# M+ f- N8 d2 h. [/ @(SYN) divergence.
! d: ~% |- o9 \2 }* ?& a# }7 [" H) W1 x( q2 u1 o7 v
问题:我想把以“△Ex.”开头的例句替换成[*]•[i] The cows got out of the field through a gap in the fence.[/i][/*]                                      [*]•[i] The record is not complete; there are several gaps in it. There still exists in general a wide gap between the empirical facts of chemistry on the one side, and the fundamental laws of physics on the other (Science News).[/i][/*]
$ E8 P# ^* F  G
* @" z, s7 b" g" l& f: o( n怎样替换????求指教!

该用户从未签到

 楼主| 发表于 2012-6-6 12:17:40 | 显示全部楼层
{:soso_e100:}高手帮帮忙吧。。。。。

该用户从未签到

 楼主| 发表于 2012-6-6 19:17:23 | 显示全部楼层
顶上去。。。高手帮帮忙吧。。。。。

该用户从未签到

发表于 2012-6-7 00:01:26 | 显示全部楼层
本帖最后由 viarm 于 2012-6-7 00:03 编辑 $ T" z3 |8 Z. v1 t4 G

! L$ e8 K: l; b/ D- J0 Y0 r-By means of Vim, please ignore this post if not.* j7 g. P' J, L
  1. :g#\M△Ex.#s#$#[/*]#g
    # M# f+ Q8 |0 _/ y3 ]
  2. :%s#\M△Ex.#[*]•[i]#g
复制代码

( l4 ]1 q$ j% ]8 X& @-Be careful and please make the above commands tested at first because all of the results are subject to the sources.

该用户从未签到

 楼主| 发表于 2012-6-7 09:42:12 | 显示全部楼层
4# viarm
1 ~7 }3 d7 p+ E1 W9 n2 W灰常感谢。。。。。已测试成功。。
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

小黑屋|手机版|Archiver|PDAWIKI |网站地图

GMT+8, 2024-4-29 22:52 , Processed in 0.057170 second(s), 11 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表