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

  • SEARCH
  • Home
  • 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 3455894
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:40:12+00:00 2026-05-18T09:40:12+00:00

I was parsing a webpage but sometimes I copy something that appears to be

  • 0

I was parsing a webpage but sometimes I copy something that appears to be a blank string. White space basically.

I’ve tried to trim it using numerous ways but it still appears. The length of the string is 2, so I though it was some control characters.

Is there a way to get the chars to print out so I can actually see what they are?

This is what I am doing

    [mutableString replaceOccurrencesOfString:@" " withString:@"" 
options:NSCaseInsensitiveSearch range:(NSRange){0,[mutableString length]}];
    [mutableString replaceOccurrencesOfString:@" " withString:@"" 
options:NSCaseInsensitiveSearch range:(NSRange){0,[mutableString length]}];
    [mutableString stringByTrimmingCharactersInSet:[NSCharacterSet 
newlineCharacterSet]];
    [mutableString stringByTrimmingCharactersInSet:[NSCharacterSet 
whitespaceAndNewlineCharacterSet]];
    [mutableString stringByTrimmingCharactersInSet:[NSCharacterSet 
controlCharacterSet]];
    [mutableString stringByTrimmingCharactersInSet:[NSCharacterSet 
nonBaseCharacterSet]];
    NSLog(@" goal scorer %@",mutableString );

I’v tried pretty much everything that I can think of to remove those to invisible characters.

Many Thanks
-Code

  • 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-05-18T09:40:12+00:00Added an answer on May 18, 2026 at 9:40 am

    I can’t tell you how to find out what the characters are, but hopefully this will get rid of the characters in the full string (it worked for me anyway). Firstly download RegexKitLite:

    http://regexkit.sourceforge.net/RegexKitLite/

    Then try:

    string = [string stringByReplacingOccurrencesOfRegex:@"[\n\t\r ]+" withString:@" "];
    

    And see if that trims them out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not parsing the parameters in the beginning but parse the input string read from
Here I am parsing a webpage and getting the 'name' field from that webpage.
I'm having some trouble with a string that comes from a webpage having foreign
I have a string of text in a file that I am parsing out,
I'm parsing web-page that contains html tags without quotes. Something like this <FONT COLOR=#FF0000>
Ok, I have a very frustrating problem. I am parsing a webpage and need
Parsing the string message seems bad. Or was this exception not meant to be
I'm making an android program that retrieves content of a webpage using HttpURLConnection. I'm
I'm building a django webpage but I seem to have hit a snag as
I am considering building an app in C++ that will be parsing text from

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.