Hello I would like to localize my application, and the problem I have hard coded text all around the code also in the xib files. I would like quick way to externalize or better to get all hard coded text and put it in external file . if some one have done this before pls share ?
Asked
Active
Viewed 2,893 times
1 Answers
7
You can use regular expression to search in all projects.
Press CMD + SHIFT + F and open global search.
Click on lens (on the left of textfield) and select "options".
Select Regular Expression and paste @"[a-zA-Z0-9]+"
hope this helps.

James Webster
- 31,873
- 11
- 70
- 114

elp
- 8,021
- 7
- 61
- 120
-
2That expression may need a bit of fine tuning, for example it won't strings with any spaces, dashes, or punctuation. In this situation a regex of @"[^"]+" may be more useful. – Mark Mar 01 '12 at 18:57
-
can you please tell me the regex @"[^"]+" that exclude NSlog and exclude : at the begining ex isEqualToString:@"ffl la ld" , thanks – molwiko Mar 20 '12 at 10:38
-
i suggest this question: http://stackoverflow.com/questions/116819/regular-expression-to-exclude-set-of-keywords – elp Mar 20 '12 at 13:12
-
2@Mark that regex messes up on empty strings. This is what you want: @"[^"]*" (drop the @ for swift) – rmp251 Nov 06 '15 at 15:10