LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 807|回复: 2

问个emacs的正则表达式多行匹配的问题

[复制链接]
发表于 2004-5-14 11:08:28 | 显示全部楼层 |阅读模式
我用的win32版本,我在WinXP下

如果我要用isearch-forward-regexp进行多行的匹配怎么办
"\n"好像只在被引号转义时才有用
发表于 2004-5-14 14:47:09 | 显示全部楼层
To enter the same regexp in incremental search, you would type <TAB>
to enter a tab, and `C-j' to enter a newline.  You would also type
single backslashes as themselves, instead of doubling them for Lisp
syntax.  In commands that use ordinary minibuffer input to read a
regexp, you would quote the `C-j' by preceding it with a `C-q' to
prevent `C-j' from exiting the minibuffer.


也就是说,要在M-x isearch-forward-regexp里加入"\n",你就必须输入
C-q C-j
 楼主| 发表于 2004-5-21 12:35:34 | 显示全部楼层
谢谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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