Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RegExp

scottjhnOct 25 2012 — edited Oct 26 2012
For a string of the formats:

abc_def_ghl
abcd_xyz
abc_def_ghl_k
or similar...

I like to replace the "_char" with the uppercased char, for example:

abc_def_ghl --> abcDefGhl

abcd_xyz --> abcdXyz

abc_def_ghl_k --> abcDefGhlK

etc.

What is the RegExp for it?


Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 23 2012
Added on Oct 25 2012
1 comment
225 views