相关疑难解决方法(0)

使用 Notepad++ 将 under_score_case 更改为 CamelCase?

我可以在 NP++ 中编写一个正则表达式来查找under_score_case. 我可以在 NP++ 中使用 TextFX 通过突出显示和选择将大小写更改为大写和小写。

如何使用 NP++ 的 Find/Replace 或 TextFX 的 find and replace 将它们拼接在一起并转换under_score_casecamelCase

我想学习如何在 NP++ 中做到这一点,而不是使用脚本。

样本输入:

this is_a_line
some more_data_over_here
whoop de_do_da
Run Code Online (Sandbox Code Playgroud)

期望的输出:

this isALine
some moreDataOverHere
whoop deDoDa
Run Code Online (Sandbox Code Playgroud)

匹配下划线的正则表达式是_([a-z]). 我认为存在但找不到的替代品类似于_\toupper\1.

notepad++ regex find-and-replace

24
推荐指数
3
解决办法
3万
查看次数

标签 统计

find-and-replace ×1

notepad++ ×1

regex ×1