objective c - Use regex for change arguments count -


i new in using regex.

i trying change arguments count in method. in fact need cut second argument , rename it.

i've read article:using regular expressions replace text in xcode. , decided use "new knowledge". went wrong.

so: hear "regex" wich i've written.

enter image description here

source string:

[self.delegate filteredtaskslistcontainer:self additemwithtype:type]; 

result string :

[self.delegate filteredtaskslistcontainer_additem:1]; 

needed result string:

 [self.delegate filteredtaskslistcontainer_additem:self]; 

ps:any way, thank attention =)

it looks pretty me, try tu use $1 instead of \1.

\1 used in regex itself, in replacement pattern.


Comments