Previous:
回顾
,
Up:
正则表达式搜索
[
Contents
]
[
Index
]
12.6
re-search-forward
相关练习
¶
编写一个函数,用于搜索连续两个及以上空行匹配的正则表达式。
编写一个函数,用于搜索重复单词,例如 “the the”。See
Syntax of Regular Expressions
in
The GNU Emacs Manual
, 可查阅如何编写能匹配前后两半完全相同字符串的正则表达式。你可以设计多种正则表达式,效果各有优劣。我使用的函数及若干正则表达式会在附录中说明。See
the-the
Duplicated Words Function
.