Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8334357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:19:20+00:00 2026-06-09T03:19:20+00:00

Goal: Group strings into into different letter groups. Example letter groups: A to C,

  • 0

Goal: Group strings into into different letter groups.

Example letter groups: A to C, D to F, G to J, etc.

Pseudocode:

Loop through each group
Loop through each string in a collection
Print the string in the appropriate group

Question: What’s the best way to define a range of characters so we can use something like the following to check?

[NSCharacterSet(our custom character range) characterIsMember:[self.targetString.text characterAtIndex:0] ]

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T03:19:22+00:00Added an answer on June 9, 2026 at 3:19 am

    You can make your character sets as follows for arbitrary ranges of ASCII characters:

    NSCharacterSet *a_to_d_Set = [NSCharacterSet characterSetWithRange:NSMakeRange('a', 'd'-'a' + 1)];
    NSCharacterSet *e_to_l_Set = [NSCharacterSet characterSetWithRange:NSMakeRange('e', 'l'-'e' + 1)];
    

    Of course, you could equivalently write:

    NSCharacterSet *a_to_d_Set = [NSCharacterSet characterSetWithRange:NSMakeRange('a', 4)];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Goal: I am trying to create a UI with 2 checkboxes per line, each
Background / Goal More or less, I'm trying to create a nested group of
Goal: Rolling/Running total for all statements at the end of each month. Code: select
Let's assume, you have the xml below. The goal is to group by FirstName
Here is our goal: We want to select each month and the revenue gained
What aggregate functions work on a string, when using a GROUP BY? I would
I am using VB .Net to loop through a regex Match and generate a
Goal : I wants when I drag image it become fade so we can
Goal is to make a dialog that appears on menu_key pressed, but it keeps
Goal: Once i click on the start button on my user interface, i currently

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.