I am going to need to replace a dirty string for a clean string:
-(void)setTheFilter:(NSString*)filter
{
[filter retain];
[_theFilter release];
<PSEUDO CODE>
tmp = preg_replace(@"/[0-9]/",@"",filter);
<~PSEUDO CODE>
_theFilter = tmp;
}
This should eliminate all numbers in the filter
so that:
@"Import6652"
would yield @"Import"
How can I do it in iOS ?
Thanks!