Revision: 34918
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 30, 2010 06:18 by tuesdaycreative
Initial Code
Find: ([a-zA-Z])([* ]{2})([a-zA-Z]) Replace: \1\* \3 Example: NSString *str becomes... NSString* str
Initial URL
Initial Description
This example attempts to reorder pointer declarations so that the asterisk is adjacent to the class name. It searches for a letter, asterisk and space, and a letter. It replaces that group with the initial letter, "* ", and the final letter. Parentheses in the regular expressions register a group number. The regular expression used here only matches letters. Add 0-9 in the square brackets to search for numbers as well.
Initial Title
Xcode Regex Find and Replace
Initial Tags
Initial Language
Other