Skip to content

Instantly share code, notes, and snippets.

@dafi
Created January 17, 2016 10:48
Show Gist options
  • Save dafi/92d1c99b48348cfe403e to your computer and use it in GitHub Desktop.
Save dafi/92d1c99b48348cfe403e to your computer and use it in GitHub Desktop.
Regular Expressions used in XCode to find/replace specific methods

Regular Expressions used in XCode to find/replace specific methods

Find Objective-c methods declared without keywords before arguments

Apple rules described here require "keywords before all arguments", to find them in your code use the following regular expression

^[+-]\s+\(.*?\).*:\s?\(.*?\).*?\s+:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment