Created
January 10, 2014 15:17
-
-
Save g-pechorin/8356188 to your computer and use it in GitHub Desktop.
A pair of regular expressions / replacement strings that (I think) wrap one java class with another
This file contains 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 -> public (\w+) (\w+)\((.*?)\) \{\n\t\t\treturn .*?; | |
with -> public \1 \2\(\3\) \{\n\t\t\treturn inner.\2\(\3\); | |
find -> return inner.(\w+)\((\w+, )*.*? (\w+[,\)]) | |
with -> return inner.\1\(\2\3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment