Created
November 14, 2016 13:33
-
-
Save jazzytomato/f44d985cdcd27179d7203e82f640b95c to your computer and use it in GitHub Desktop.
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
# Example for replace spec files modules: | |
module MyFirstModule | |
module MySecondModule | |
describe Something do | |
# code | |
end | |
end | |
end | |
# will be replaced by | |
describe MyFirstModule::MySecondModule::Something do | |
# code | |
end | |
# search: | |
# (?s)module MyFirstModule\s*module MySecondModule\s*describe\s([a-zA-Z]*)\sdo(.*)(end\send\s*\Z) | |
# replace: | |
# describe MyFirstModule::MySecondModule::\1 do\2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment