Created
November 10, 2016 10:45
-
-
Save mrleolink/1aaa38349b91bbb69a453d894fb68eb5 to your computer and use it in GitHub Desktop.
Replacing in IntelliJ with regex - Reference: http://stackoverflow.com/questions/20742076/regex-replace-uppercase-with-lowercase-letters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find: ^(\W+public void .*?)_([A-Z]{1})([a-zA-Z]*)_([A-Z]{1})([a-zA-Z]*)\(\) \{$ | |
Replace: $1_\l$2$3_\l$4$5() { | |
This will cause all texts like this: | |
" public void method1_DoThisDoThat_ReturnThisReturnThat() {" | |
be relaced with: | |
" public void method1_doThisDoThat_returnThisReturnThat() {" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment