Check if last characters of an NSString are numbers.

Posted by Michael Matheus on Stack Overflow See other posts from Stack Overflow or by Michael Matheus
Published on 2010-04-03T09:57:20Z Indexed on 2010/04/03 10:03 UTC
Read the original article Hit count: 243

Filed under:
|
|

Is it possible to see of a string ends with a number which length is not known?

  1. "String 1" -> 1
  2. "String 4356" -> 4356
  3. "String" -> nil

If so, how can I determine that number?

© Stack Overflow or respective owner

Related posts about nsstring

Related posts about cocoa