Languages
[Edit]
EN

Regex - convert from underscore to camel case notation

11 points
Created by:
Hayley-Mooney
677

To convert from underscore to camel case notation we can use below regex.

Tested with notepad++.

Notes:

  • ensure to have 'Regular expression' radio button checked.

Motivation:
     Why I like to use it?

  • Because I don't need to convert SQL field names manually and it saves my time.
  • I usually use it to when creating java entity and need to convert more then 3 fields from mysql underscore notation (really handy).

Screenshots

Edit

Screenshot before:

Regex to convert from underscore to camel case notation - before replace
Regex to convert from underscore to camel case notation - before replace

Screenshot after:

Regex to convert from underscore to camel case notation - after replace
Regex to convert from underscore to camel case notation - after replace

More complex example

Edit

See also

Edit
  1. Regex - convert from camel case notation to underscore

Alternative titles

  1. Regex db underscore column name to java entity notation (database, convert)
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Regex

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join