regex - regular expressions replace in iOS -


I will seek to replace dirty string to a clean string:

  - (void ) SetTheFilter: {NSString *) Filters {{Maintaining Filters]; [_the filter release]; & Lt; PSEUDO CODE & gt; Tmp = preg_replace (@ "/ [0-9] /", @ "", filter); & Lt; ~ PSEUDO CODE & gt; _the filter = tmp; }   

This should end all the numbers in Filters so that:

@ "Import 6652"
@ "Import" generated

How can I do this in iOS?

Thank you!

  Ansargyulr Akspersn * Reese x = [Ansargyulr expression regular Aksperisn Vithpatna @ "([0- 9] + '' Options: 0 Error: Nile]; [Regex replaceMatchesInString: str Option: 0 Category: NSMakeRange (0, [str length]) with template: @ ""];   Swift   
  or {try RegEx = Ansargyulr Akspersn in (pattern: "([0- 9] +)" option: NSRegularExpressionOptions.CaseInsensitive ) regex.replaceMatchesInString (str, options: NSMatchingOptions.ReportProgress, category: with NSRange (0, str.characters.count), template: "")} catch {}    < / Html>

Comments