当前位置:网站首页>notepad++下划线以及大小写字母置换
notepad++下划线以及大小写字母置换
2022-07-17 05:21:00 【yygyj】
notepad++ 方便开发的小技巧
在java开发过程当中,我会遇到这样的问题,话不多说,来看具体示例:
示例一:
一张表有很多个字段(100个吧),数据库表字段的格式一般是下划线分隔的,比如 db_user_role、db_ccc_out,诸如此类。
那我们在建立实体类的时候如果没有个简单的方法去将这些整体变成小驼峰的形式,我想你一个一个去改是非常痛苦的。
具体实现:
1.有以下字段,这里用五个举例
db_user_one
db_role_two
db_prod_three
db_ccc_four
db_link_five
2.将上面字段变成小驼峰按照如下步骤即可(([a-z])_([A-Z]) \1\u\2)




边栏推荐
猜你喜欢
随机推荐
Openssl--- stack
UDP的报文结构
Programming learning based on ardunio ide software development
聊聊中台:我对中台的一些理解与思考
Experiment 4 operator overloading and virtual functions
Sword finger offer brush questions
mass data
管理员阻止运行此应用
lock
从输入URL到展示出页面
How can the new generation of CS sdnand (also known as patch T card) make the old MCU youthful
Double code time scale network diagram
Pytorch deep learning practice-b station Liu erden-day4
二分查找及其引申
Binary search and its extension
What is data center?
Part of the second Shanxi Network Security Skills Competition (Enterprise Group) WP (IV)
Experiment class II and object definition initialization
Automatic completion & (custom) Pinyin word Separator &
网络中的一些基本概念









