求助!关于正则表达式
本帖最后由 mitkyg 于 2012-6-6 12:16 编辑gap, noun, verb, gapped, gapping.
noun 1. a broken place; opening.
△Ex. The cows got out of the field through a gap in the fence.
(SYN) break, breach.
2. an empty part; unfilled space; blank.
△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).
(SYN) lacuna.
3. a wide difference of opinion, character, or the like.
(SYN) divergence.
问题:我想把以“△Ex.”开头的例句替换成[*]• The cows got out of the field through a gap in the fence.[/*] [*]• 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).[/*]
怎样替换????求指教! {:soso_e100:}高手帮帮忙吧。。。。。 顶上去。。。高手帮帮忙吧。。。。。 本帖最后由 viarm 于 2012-6-7 00:03 编辑
-By means of Vim, please ignore this post if not.
:g#\M△Ex.#s#$#[/*]#g
:%s#\M△Ex.#[*]•#g
-Be careful and please make the above commands tested at first because all of the results are subject to the sources. 4# viarm
灰常感谢。。。。。已测试成功。。
页:
[1]