掌上百科 - PDAWIKI

 找回密码
 免费注册

QQ登录

只需一步,快速开始

查看: 1024|回复: 4

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

[复制链接]

该用户从未签到

发表于 2012-6-6 12:02:02 | 显示全部楼层 |阅读模式
[i=s] 本帖最后由 mitkyg 于 2012-6-6 12:16 编辑 [/i]
5 [  z- t* ~/ f/ C4 |! r" h. d1 a9 y8 ?1 T; F2 C
gap, noun, verb, gapped, gapping.! x* [; P' Q; a# _* D
noun 1. a broken place; opening.( u: e' t! A$ K/ W
△Ex. The cows got out of the field through a gap in the fence.; ^- q, b) F. M5 y0 g9 p+ C
(SYN) break, breach.& ?2 B, x, c& |2 o/ y# t% y
2. an empty part; unfilled space; blank.
) s2 p4 D% X& v7 }# C△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).
, Q7 k3 c/ w- m% r(SYN) lacuna.( S5 H/ I& b" i. p* G: K
3. a wide difference of opinion, character, or the like.- r* b  v7 {# b/ q  w
(SYN) divergence.' j5 |3 j2 _0 ^  f; s! k& o$ O

- K! c7 K/ d/ @! M" p  I3 c问题:我想把以“△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][/*]9 {" X4 c4 b" Y7 `9 K
* t; E6 w) L! J' g* m# d/ 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 编辑
% Z6 J$ I' V- h- A$ ~; ^) a. C' j6 p9 F0 n8 D1 L
-By means of Vim, please ignore this post if not.8 F3 j3 M! k  l3 m! n8 R3 @( M4 t! K
  1. :g#\M△Ex.#s#$#[/*]#g
    9 y- M; u) m2 N0 }0 }3 \. r4 n4 a
  2. :%s#\M△Ex.#[*]•[i]#g
复制代码
; k4 Y2 K; C( j; c9 @
-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
& d. _" ~. H6 @* v5 o灰常感谢。。。。。已测试成功。。
您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

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

GMT+8, 2025-5-8 19:58 , Processed in 0.022671 second(s), 25 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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