Skip to content

Instantly share code, notes, and snippets.

@aaronpearce
Created June 29, 2011 19:51
Show Gist options
  • Save aaronpearce/1054753 to your computer and use it in GitHub Desktop.
Save aaronpearce/1054753 to your computer and use it in GitHub Desktop.
Tblumps
for (int i = 0; i < [[self tablumps] count]; i++) {
bodyString = [bodyString stringByReplacingOccurrencesOfString:[[self tablumps] objectAtIndex:i] withString:[[self tablumpsReplace] objectAtIndex:i]];
}
for (int j = 0; j < [[self tablumpsRegex] count]; j++) {
bodyString = [bodyString stringByReplacingOccurrencesOfRegex:[[self tablumpsRegex] objectAtIndex:j] withString:[[self tablumpsRegexReplace] objectAtIndex:j]];
bodyString = [bodyString stringByReplacingOccurrencesOfString:@":f" withString:@"/f"];
bodyString = [bodyString stringByReplacingOccurrencesOfString:@":i" withString:@"/i"];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment