掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 861|回复: 4

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

[复制链接]

该用户从未签到

发表于 2012-6-6 12:02:02 | 显示全部楼层 |阅读模式
[i=s] 本帖最后由 mitkyg 于 2012-6-6 12:16 编辑 [/i]0 t5 F- s% T! `  m( s6 \

: C  ]5 R, V4 B. k; pgap, noun, verb, gapped, gapping.; C* U5 ]1 \# a
noun 1. a broken place; opening.. h; V& c! R+ T# X
△Ex. The cows got out of the field through a gap in the fence.) o- B4 i" [! [3 G
(SYN) break, breach.+ @9 e- ~$ E  ^' v0 \
2. an empty part; unfilled space; blank.7 b; N# e' K! Z
△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).7 `3 S5 q4 T& [, ^3 P9 b
(SYN) lacuna.( |- D; O, V, ?5 X
3. a wide difference of opinion, character, or the like.: v# Y# d; G* U) G
(SYN) divergence.
5 Y: A% K' D' N" Z' w/ ]2 S, j! \- o0 G# v! I$ L2 _6 B
问题:我想把以“△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][/*]2 f; j9 O. B  r, A3 E! F5 l1 f
; _0 B$ g1 v( ^" Y) V
怎样替换????求指教!

该用户从未签到

 楼主| 发表于 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 编辑
: t8 C. k% H0 n2 S: Z8 K/ t# Z+ C0 O7 C
-By means of Vim, please ignore this post if not.
! p3 V+ u( R1 z
  1. :g#\M△Ex.#s#$#[/*]#g
    * m9 s( q& {6 v- ~6 S
  2. :%s#\M△Ex.#[*]•[i]#g
复制代码
4 N3 B4 c5 |/ t( A% J
-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
2 Y* v% |5 {+ e: K' I3 H灰常感谢。。。。。已测试成功。。
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

GMT+8, 2024-4-29 18:48 , Processed in 0.040735 second(s), 11 queries , MemCache On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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