Objective-C Method Signature RegEx

If you don’t understand the title of this post, don’t bother reading any further. If you do, here’s a nice regular expression that will, given an Obj-C source file (.h or .m), give you all of the method signatures. It should work in every case that I can think of, but if you’re doing anything involving weird types or preprocessor macros it should work.

(\-|\+)\s*\([\w\s]+(\s*\*)?\)\w+(:\([\w\s]+(\s*\*)?\)\w+\s?)?(\w+:\([\w\s]+(\s*\*)?\)\w+\s?)*


7 Comments to “Objective-C Method Signature RegEx”  

  1. 1 hoodiaweightloss

    Wanted to compliment on your site, it looks really good .

    Hank

  2. 2 robert

    hi all.

  1. 1 Bottom Lover
  2. 2 Paris Hilton Sex Tape Video 2 - Paris Hilton Exposed *HOT*
  3. 3 Sexual side effects from zoloft.
  4. 4 paris hilton in sex
  5. 5 Propecia sexual side effects.


Leave a Reply