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 6184383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T01:31:42+00:00 2026-05-24T01:31:42+00:00

i have a string @ABC 1.23 bla bla bla from which i have to

  • 0

i have a string @”ABC 1.23 bla bla bla” from which i have to remove the @”ABC” string and after that the string @”1.23″. The problem is that the text @”1.23″ varies .. it could be @”1.55″ etc. How can i remove the string @”ABC” and the next word after space ?

  • 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-24T01:31:43+00:00Added an answer on May 24, 2026 at 1:31 am

    You can use regular expressions, or you can do that in several ways using NSString methods.

    1. use componentsSeparatedByString and pass a space; your string will be split in an array at word boundaries; then you use componentsJoinedByString: ignoring the first two elements of the array;

    2. you can use twice in succession rangeOfString: passing a space in; the first time it will find the space after ABC; the second time, it will find the space after 1.23 (or whatever); then you get the substringFromIndex: starting at that position.

    Regular expression would give you much more options, but it would be a steeper curve, if you have never used regex in ObjC. Have a look at RegExKitLite if you are interested.

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

Sidebar

Related Questions

I have string like this: G:\Projects\TestApp\TestWeb\Files\Upload\file.jpg How can I remove all text before Files
I have: String uri = @drawable/myresource.png; How can I load that in ImageView? this.setImageDrawable?
I have a string coming from server which I am displaying on UILabel. It
If I have a string which contains abc: def - 01:00, ghi - 02:00
I have a string in the format: t='@abc @def Hello this part is text'
I have a string: ABC BCC CDD. When I set this text to control,
I have a string that looks like this: abc[1,2,3].something.here,foo[10,6,34].somethingelse.here,def[1,2].another I want to split this
I have a string like: string originalStringBefore = http://www.abc.com?a=||ThisIsForRndNumber||&qq=hello&jj=||ThisIsForRndNumberAlso||; I want every string which
I have a string like (&(objectclass=${abc})(uid=${xyz})) How can I search ${abc} and ${xyz} and
I have a multiple string urls, from which i have to pick last few

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.