How to replace Kate regular expression

∥☆過路亽.° 提交于 2019-11-30 18:29:17

Wrap the value with ( ) to capture it as a group, so you can use it in your replace

So change your find regex like this:

\\command\{([a-zA-Z]*)\}

and you should do fine.

Here is a quote directly from the documentation:

The string \1 references the first sub pattern enclosed in parentheses

So you need to put [a-zA-Z]* in a capturing group, like ([a-zA-Z]*).

Find: \\command\{([a-zA-Z]*)\}
Replace: \\disobey\{\1\}
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!