简体   繁体   English

emacs搜索整个矩形

[英]emacs search throught rectangle

is it possible with emacs to search a specific region of text for example I have a csv file like this emacs是否可以搜索文本的特定区域,例如我有一个csv文件?

Column1,Column2,Column3
11,11,11
11,22,3444
234,44,

and I want to search the content of the second column is it possible to do this with emacs? 并且我想搜索第二列的内容,是否可以使用emacs执行此操作?

您可以使用“ narrow-to-region来更改区域并在其中进行搜索,然后使用“ widen

You can use regular expression: CMs ^[^,]*,[^,]44[^,], to search for 44 in the second column. 您可以使用正则表达式: CMs ^[^,]*,[^,]44[^,],在第二列中搜索44。

See manual for help. 请参见手册以获取帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM