English 中文(简体)
Emacs 文件浏览器中文件名(regexm)的大小写转换
原标题:Case conversion of file name (regexp) in Emacs file browser

我有一个类似的问题 与

< a href=>https://stackoverflow.com/ questions/677021/emacs-regular-表达式-repecting-change-case>Emacs:替换案例的正则表达式

我想使用 Emacs 文件浏览器模式 Dired 将文件从 08 - hey you.mp3 重命名为 08 - Hey you.mp3

我输入 来替换 改为 1,(上例2)3 ,我出错

Invalid use of `  in replacement text

当我在普通文本缓冲中查询-替换-regEXD ([0-9] * - ([a-z])(*) by 1, ((upcase 2)3 > 在普通文本缓冲中 ([0-9] *) - ([a-z])(.*) ([2) <(upcase 2) 和 ($code> ($code>) 中解释,但错误的来源似乎是 < icode_File_File_File_deformation_dicode>,当 < decode > (op_de)

我用的是Emacs 23.2.1

问题回答

R in fried calls dired-do-rename-regexp ,最后从 dired-string-replace-match 调出 replace-match redred-do-rename-regexp replace-match replet-met-string-replace-match 调出 ,且替换匹配不支持 Elsp 替换。

您可以利用 wdired 来将目录列表编辑为纯文本。

C-x C-q (即通常的 togle-read- only contact) 将切换成已烧焦和已烧焦。 在 wdired 中, 您可以使用正常的搜索和替换, 包括 elisp 替换模式 。





相关问题
Uncommon regular expressions [closed]

Recently I discovered two amazing regular expression features: ?: and ?!. I was curious of other neat regex features. So maybe you would like to share some tricky regular expressions.

regex to trap img tag, both versions

I need to remove image tags from text, so both versions of the tag: <img src="" ... ></img> <img src="" ... />

C++, Boost regex, replace value function of matched value?

Specifically, I have an array of strings called val, and want to replace all instances of "%{n}%" in the input with val[n]. More generally, I want the replace value to be a function of the match ...

PowerShell -match operator and multiple groups

I have the following log entry that I am processing in PowerShell I m trying to extract all the activity names and durations using the -match operator but I am only getting one match group back. I m ...

Is it possible to negate a regular expression search?

I m building a lexical analysis engine in c#. For the most part it is done and works quite well. One of the features of my lexer is that it allows any user to input their own regular expressions. This ...

regex for four-digit numbers (or "default")

I need a regex for four-digit numbers separated by comma ("default" can also be a value). Examples: 6755 3452,8767,9865,8766,3454 7678,9876 1234,9867,6876,9865 default Note: "default" ...