Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You'll need two character sets:</p> <ul> <li><a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/Reference/Reference.html#//apple_ref/occ/clm/NSCharacterSet/letterCharacterSet" rel="nofollow"><code>[NSCharacterSet letterCharacterSet]</code></a></li> <li><a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/Reference/Reference.html#//apple_ref/occ/clm/NSCharacterSet/alphanumericCharacterSet" rel="nofollow"><code>[NSCharacterSet alphanumericCharacterSet]</code></a></li> </ul> <p>Using these will enable you to match <em>all</em> letters and numbers in Unicode, not just the English alphabet and digit set. If you really do want only those much-smaller sets, they're easy enough to construct using <a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/Reference/Reference.html#//apple_ref/occ/clm/NSCharacterSet/characterSetWithCharactersInString%3a" rel="nofollow"><code>characterSetWithCharactersInString:</code></a> and/or <a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSCharacterSet_Class/Reference/Reference.html#//apple_ref/occ/clm/NSCharacterSet/characterSetWithRange%3a" rel="nofollow"><code>characterSetWithRange:</code></a>. If you use the latter method, you'll need to make an NSMutableCharacterSet and <a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSMutableCharacterSet_Class/Reference/Reference.html#//apple_ref/occ/instm/NSMutableCharacterSet/formUnionWithCharacterSet%3a" rel="nofollow">union</a> another character set into it.</p> <p>Once you have your character set, it's easy to <a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSScanner_Class/Reference/Reference.html#//apple_ref/occ/instm/NSScanner/scanCharactersFromSet%3aintoString%3a" rel="nofollow">scan characters only characters within a set</a> and then, if you want, <a href="http://developer.apple.com/library/mac/documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html#//apple_ref/occ/instm/NSString/stringByAppendingString%3a" rel="nofollow">concatenate one string onto the other</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload