如何在Intellij IDEA中使用正则表达式将大写字母替换为小写字母?
2022-08-31 09:55:34
我已经用谷歌搜索了这个,并发现了如何使用其他正则表达式解析器:
http://vim.wikia.com/wiki/Changing_case_with_regular_expressions
http://www.regular-expressions.info/replacecase.html
我已经尝试过这些,但都不起作用。例如,我想使用正则表达式来更改它:
private String Name;
private Integer Bar = 2;
对此:
private String name;
private Integer bar = 2;
我尝试了这样的东西:
replace: private (\S+) (\S+)
with: private $1 $L$2
with: private $1 \L$2
with: <etc.>
它们都不起作用。是否可以在 intellij 中执行此操作,或者这是一个缺少的功能?这只是为了教育目的,这个例子是人为的。我只是想知道这是否有可能在intellij中完成。